27.06.2011, 05:14
Just add:
Before you give them the guns just add that there. Like at SetPlayerArmour(playerid,100); add that check in the line before that.
Example:
Oh and -1 would set the color to white.
pawn Код:
if(GetPlayerMoney(playerid) < The amount of cash needed to buy the thing)return SendClientMessage(playerid,-1,"You need x amount of money to buy this.");
Example:
pawn Код:
if(GetPlayerMoney(playerid) < 500)return SendClientMessage(playerid,-1,"You need $500 to buy this.");