15.11.2014, 18:47
As you can see now I adding bracket because the codes does two lines.
by addind this line :
pawn Код:
case 0:
{
if(GetPlayerMoney(playerid) < PRICE_HE_SHOULD HAVE) return SendClientMessage(playerid, COLOR, "poorguys")
GivePlayerWeapon(playerid,41,500), GivePlayerMoney(playerid,-500);
}
// do the same thing for the second case.
pawn Код:
if(GetPlayerMoney(playerid) < PRICE_HE_SHOULD HAVE) return SendClientMessage(playerid, COLOR, "poorguys")
// remplace "PRICE_HE_SHOULD_HAVE" by the price of the guns.. and "poorguys" by your message.