Help with /kill command !
#1

Hi everyone,

I've made this simple command:
pawn Код:
if(strcmp(cmdtext,"/kill",true)==0)
{
if(DM[playerid] == 1)
{
SendClientMessage(playerid, RED, "ERROR: You're in DM.");
return 0;
}
if(AFK[playerid] == 1)
{
SendClientMessage(playerid, RED, "ERROR: You're AFK.");
return 0;
}
SetPlayerHealth(playerid,0.0);
return 1;
}
But, if I'm in DM or AFK I can use /kill without any problems !
I hope you will help me
Reply


Messages In This Thread
Help with /kill command ! - by Yaszine - 26.12.2010, 16:25
Re: Help with /kill command ! - by Tutrix - 26.12.2010, 16:29
Re: Help with /kill command ! - by JaTochNietDan - 26.12.2010, 16:30
Re : Re: Help with /kill command ! - by Yaszine - 26.12.2010, 16:59

Forum Jump:


Users browsing this thread: 1 Guest(s)