[Tutorial] [TUT] How to add a message when the command is wrong
#30

Quote:
Originally Posted by yoan103
View Post
OK but does it work for the people that are using normal commands?
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/heal", cmdtext, true, 10) == 0)
{
if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid, COLOR_RACE, "You don't have enough $ to heal.");
GivePlayerMoney(playerid, -500);
SendClientMessage(playerid, COLOR_RACE, "Healed for 500$.");
SetPlayerHealth(playerid, 100);
return 1;
}

return SendClientMesage(playerid, COLOR_ORANGE, "Command does not exist please use /help");
}
You can also add this messege down so you add it at every cmd :S
Reply


Messages In This Thread
[TUT] How to add a message when the command is wrong - by yoan103 - 23.02.2010, 14:54
Re: [TUT] How to add a message when the command is wrong - by Torran - 23.02.2010, 14:57
Re: [TUT] How to add a message when the command is wrong - by yoan103 - 23.02.2010, 14:57
Re: [TUT] How to add a message when the command is wrong - by Torran - 23.02.2010, 14:58
Re: [TUT] How to add a message when the command is wrong - by yoan103 - 23.02.2010, 15:00
Re: [TUT] How to add a message when the command is wrong - by saiberfun - 23.02.2010, 15:00
Re: [TUT] How to add a message when the command is wrong - by yoan103 - 23.02.2010, 15:02
Re: [TUT] How to add a message when the command is wrong - by Torran - 23.02.2010, 15:05
Re: [TUT] How to add a message when the command is wrong - by yoan103 - 23.02.2010, 16:21
Re: [TUT] How to add a message when the command is wrong - by yoan103 - 24.02.2010, 13:19
Re: [TUT] How to add a message when the command is wrong - by Torran - 24.02.2010, 13:40
Re: [TUT] How to add a message when the command is wrong - by Klutty - 24.02.2010, 13:43
Re: [TUT] How to add a message when the command is wrong - by [DK]JaloNik - 08.07.2010, 17:11
Re: [TUT] How to add a message when the command is wrong - by MadalinX5 - 10.07.2010, 22:11
Re: [TUT] How to add a message when the command is wrong - by GaGlets(R) - 11.07.2010, 05:28
Re: [TUT] How to add a message when the command is wrong - by [NTX]MikeQ - 12.07.2010, 21:38
Re: [TUT] How to add a message when the command is wrong - by iZN - 13.07.2010, 10:34
Re: [TUT] How to add a message when the command is wrong - by Kar - 13.07.2010, 13:42
Re: [TUT] How to add a message when the command is wrong - by Aleluja - 13.07.2010, 13:53
Re: [TUT] How to add a message when the command is wrong - by Thebest96 - 16.07.2010, 08:50
Re: [TUT] How to add a message when the command is wrong - by ShockDM - 16.07.2010, 10:26
Re: [TUT] How to add a message when the command is wrong - by DRIFT_HUNTER - 25.07.2010, 19:02
Re: [TUT] How to add a message when the command is wrong - by CSMajor - 29.07.2010, 00:11
Re: [TUT] How to add a message when the command is wrong - by John_F - 29.07.2010, 00:52
Re: [TUT] How to add a message when the command is wrong - by GaGlets(R) - 29.07.2010, 02:08
Re: [TUT] How to add a message when the command is wrong - by TuTu89 - 07.09.2010, 13:23
Re: [TUT] How to add a message when the command is wrong - by Scenario - 07.09.2010, 13:41
Re: [TUT] How to add a message when the command is wrong - by Nat_Pagle - 22.02.2011, 21:11
Re: [TUT] How to add a message when the command is wrong - by alpha500delta - 22.02.2011, 21:32
Re: [TUT] How to add a message when the command is wrong - by [M.A]Angel[M.A] - 02.03.2011, 02:23

Forum Jump:


Users browsing this thread: 4 Guest(s)