24.11.2012, 21:50
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
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