Woring Fine. but. when i type: /spwn only show:
"[Grenade]: Re-Spwan Enable"
it can't disable.
function miss to disable for player
PHP Code:
public spwn_cmd (victim)
{
switch(get_pcvar_num(amx_pcvar_0))
{
case 1:
client_print(victim, print_chat, "[Grenade]: Re-Spwan Enable")
case 0:
client_print(victim, print_chat, "[Grenade]: Re-Spwan Disable")
}
}
when i move that to:
PHP Code:
if(is_user_alive(victim))
{
set_task(0.6,"respawnagain",victim);
client_print(0, print_chat, "[Grenade]: HE kill %s and respwan.",pl_name);
}
return PLUGIN_CONTINUE;
can't compile and unable to on/off for player
__________________