|
- #if MOD == 0
- else if (p_data[id][P_ITEM2]==ITEM_SCROLL && !is_user_alive(id) && !endround){
- if(get_user_team(id)==TS || get_user_team(id)==CTS){
- new parm[2]
- parm[0]=id
- parm[1]=6
- set_task(0.2,"func_spawn",TASK_ITEM_SCROLL+id,parm,2)
- p_data_b[id][PB_SPAWNEDFROMITEM]=true
- p_data[id][P_ITEM2]=0
- p_data[id][P_ITEM]=0
- }
- }
- #endif
- else if (p_data[id][P_ITEM2]==ITEM_GLOVES){
- //new parm[2]
- //parm[0]=id
- //parm[1] = iCvar[FT_GLOVE_TIMER]
- Item_Glove_Give(id)
- }
- else if (p_data[id][P_ITEM2]==ITEM_RING){
- ++p_data[id][P_RINGS]
- if(!task_exists(TASK_ITEM_RINGERATE+id)){
- new parm[1]
- parm[0]=id
- _Item_Ring(parm)
- }
- }
- set_user_money(id,get_user_money(id)-itemcost2[key],1)
- Item_Message(id, iShopmenuItem, SHOPMENU_TWO)
- }
- emit_sound(id,CHAN_STATIC, SOUND_PICKUPITEM, 1.0, ATTN_NORM, 0, PITCH_NORM)
- WAR3_Display_Level(id,DISPLAYLEVEL_NONE)
- return PLUGIN_HANDLED
- }
复制代码 |
|