how to make a /kill?
#1

like dis





cmd(die, playerid, params[])
{
new string[120];
if(GetPVarInt(playerid, "Spawned") == 0)
return SendClientMessage(playerid, COLOR_ERROR, "You must be spawned to use this command.");
if(GetPVarInt(playerid, "Jailed") == 1)
return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while in jail.");
if(GetPVarInt(playerid, "Cuffed") == 1)
return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command while cuffed.");
if(GetPVarInt(playerid, "HasSTDs") == 1)
return SendClientMessage(playerid, COLOR_ERROR, "You cannot use this command with STDs.");
SetPlayerHealth(playerid, -1);
format(string, 120, "%s(%d) has commited suicide using /die. Emo D: ", PlayerInfo(playerid));
SendClientMessageToAll(COLOR_GREEN, string);
return 1;
}













i wanna it /kill
Reply


Messages In This Thread
how to make a /kill? - by DerickClark - 24.11.2012, 21:50
Re: how to make a /kill? - by Konstantinos - 24.11.2012, 22:06
Re: how to make a /kill? - by Channeru - 24.11.2012, 22:35

Forum Jump:


Users browsing this thread: 1 Guest(s)