R版主您好,请问一下代码怎样改成团队复活
#if MOD == 0else if (p_data==ITEM_SCROLL && !is_user_alive(id) && !endround){
if(get_user_team(id)==TS || get_user_team(id)==CTS){
new parm
parm=id
parm=6
set_task(0.2,"func_spawn",TASK_ITEM_SCROLL+id,parm,2)
p_data_b=true
p_data=0
p_data=0
}
}
#endif
else if (p_data==ITEM_GLOVES){
//new parm
//parm=id
//parm = iCvar
Item_Glove_Give(id)
}
else if (p_data==ITEM_RING){
++p_data
if(!task_exists(TASK_ITEM_RINGERATE+id)){
new parm
parm=id
_Item_Ring(parm)
}
}
set_user_money(id,get_user_money(id)-itemcost2,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
} 翻一下老贴
页:
[1]