03.06.2009, 20:32
It's kinda obviosly that you're trying to add a "Public" function that already exists.
(OnPlayerCommandText).
You aren't supposed to add a new "public" function for each command.
Just make a new row Under another command, and paste this:
Simple, but works!
(OnPlayerCommandText).
You aren't supposed to add a new "public" function for each command.
Just make a new row Under another command, and paste this:
pawn Код:
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, COLOR_YELLOW, "You have killed yourself.");
return 1;
}