Money Help - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Money Help (
/showthread.php?tid=235653)
Money Help -
Alex_Obando - 06.03.2011
How I can Make this:
If the player enter to the checkpoint remove $7000 to the player
If the player doesn't have it the return: You have insufficient founds
Re: Money Help - [L3th4l] - 06.03.2011
pawn Код:
public OnPlayerEnterCheckpoint(....)
{
if(GetPlayerMoney(playerid) < 70000) return SendClientMessage(playerid, COLOR_RED, "You have insufficient founds!");
GivePlayerMoney(playerid, - 70000);
return 1;