18.11.2012, 14:10
Hey guys I have a few questions...
In my script I have this callback, but when I /kill it doesn't work. What I'm trying to say is, when I do /kill, I want a message sent to the whole chat saying.
(name) has commited suicide using /kill
here it is.
And......
Is there a command that allows a admin to kill someone as a punishment?
If you know the code, could you please post it.
Thanks
In my script I have this callback, but when I /kill it doesn't work. What I'm trying to say is, when I do /kill, I want a message sent to the whole chat saying.
(name) has commited suicide using /kill
here it is.
Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
ClearAnimations(playerid,5);
SetPlayerHealth(playerid,0);
SendClientMessage(playerid,0xEAFF00FF,"You have commited sucide");
SetPlayerScore(playerid, GetPlayerScore(playerid) - 2);
new msg[128],
suicider[MAX_PLAYER_NAME];
GetPlayerName(playerid, suicider, sizeof suicider);
format(msg, sizeof(msg), "%s has commited suicide using kill!", suicider);
SendClientMessageToAll(0xFF0000FF, msg);
return 1;
}
Is there a command that allows a admin to kill someone as a punishment?
If you know the code, could you please post it.
Thanks

