SA-MP Forums Archive
abit of helpp.. - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: abit of helpp.. (/showthread.php?tid=94150)



abit of helpp.. - Studio - 28.08.2009

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...


Re: abit of helpp.. - Studio - 28.08.2009

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;
}