/kill command bugged
#10

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:



pawn Код:
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, COLOR_YELLOW, "You have killed yourself.");
return 1;
}
Simple, but works!
Reply


Messages In This Thread
/kill command bugged - by skalman - 03.06.2009, 13:29
Re: /kill command bugged - by Correlli - 03.06.2009, 13:34
Re: /kill command bugged - by Think - 03.06.2009, 13:38
Re: /kill command bugged - by skalman - 03.06.2009, 13:48
Re: /kill command bugged - by Correlli - 03.06.2009, 13:52
Re: /kill command bugged - by skalman - 03.06.2009, 13:59
Re: /kill command bugged - by Correlli - 03.06.2009, 14:01
Re: /kill command bugged - by radhakr - 03.06.2009, 17:52
Re: /kill command bugged - by gergo11 - 03.06.2009, 18:13
Re: /kill command bugged - by Mike Garber - 03.06.2009, 20:32

Forum Jump:


Users browsing this thread: 1 Guest(s)