23.01.2011, 02:10
A cmd to just kill you basically? Simple:
You need to include zcmd on your script, on top make sure you have:
And explain what else you might need to add as i wasnt sure
pawn Code:
CMD:kill(playerid, params[])// This is stating the commands name, /kill, using the zcmd heading
{// this signals the like start of code
SetPlayerHealth(playerid, 0);// this sets the player ids health to 0
SendClientMessage(playerid, 0x2641FEAA, "Your Emo, You Killed Yourself");// This sends the player who did the cmd a message saying he killed himself, using color blue which is 0x2641FEAA
return 1;// this is needed or else doesnt work
}// end the cmd
pawn Code:
#include <zcmd>