Help again....
#1

Quote:

public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid, 0);
SendClientMessage(playerid, COLOR_GREY, "You have commited suicide!!");
GivePlayerMoney(playerid,-1500);
SendClientMessage(playerid, COLOR_RED, "Hospital bills has been taken off, Thanks for your visit.");
return 0;
}
}

If they do /kill, There money goes off 2x and the red Text appears 2x? How do i make it 1X.
Reply


Messages In This Thread
Help again.... - by Brunok - 29.05.2011, 11:20
Re: Help again.... - by Osviux - 29.05.2011, 11:26
Re: Help again.... - by Brunok - 29.05.2011, 11:31
Re: Help again.... - by sleepysnowflake - 29.05.2011, 11:32
Re: Help again.... - by Osviux - 29.05.2011, 11:35

Forum Jump:


Users browsing this thread: 1 Guest(s)