14.08.2011, 22:29
will this code do that if i will do /kill it will kill me but if i will do /kill [ID] it will kill another players?
(without any special includes or stocks)
:
(without any special includes or stocks)
:
pawn Код:
if(strcmp(cmd, "/kill",true) == 0)
{
new sid[256], id;
sid = strtok(cmdtext,idx);
if(!strlen(sid))
{
SetPlayerHealth(playerid, 0);
return 1;
}
id = ReturnID(sid);
SetPlayerHealth(id, 0);
return 1;
}