Quote:
Originally Posted by Hiddos
pawn Код:
if (strcmp("/m4", cmdtext, true, 10) == 0){ if(GetPlayerMoney(playerid) < 500) return SendClientMessage(playerid,COLOR_RED,"YOU NEED MORE MONEY TO BUY THIS WEAPON !"); GivePlayerWeapon(playerid, 31, 200); GivePlayerMoney(playerid, -500); return 1; }
To mikkel: You're not returning anything, so the command will continue.
|
I simply gave him what he needed.
I expect him to do 'else if' or 'else' himself.