[HELP] tracking players
#2

Just add:

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.");
Before you give them the guns just add that there. Like at SetPlayerArmour(playerid,100); add that check in the line before that.

Example:

pawn Код:
if(GetPlayerMoney(playerid) < 500)return SendClientMessage(playerid,-1,"You need $500 to buy this.");
Oh and -1 would set the color to white.
Reply


Messages In This Thread
[HELP] Shop system - by zouyun - 27.06.2011, 00:19
Re: [HELP] tracking players - by Tee - 27.06.2011, 05:14
Re: [HELP] tracking players - by zouyun - 27.06.2011, 15:21

Forum Jump:


Users browsing this thread: 1 Guest(s)