abit of helpp..
#1

Is this right.. because Im trying to make an /kill command can someone help me fix the problam..
Код:
if(strcmp(cmd, "/help", true) == 0) {

SetPlayerHealth(id, 0);
return 1;
}
If it is wrong please try give me an excisting /kill command...
Reply
#2

Dw i fixed it
Код:
if (strcmp(cmd, "/kill", true) == 0)
{
SendClientMessage(playerid, COLOR_RED, "You have killed urself.");
SetPlayerHealth(playerid, 0.0);
InjuredSpawn[playerid] = 1;
return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)