SA-MP Forums Archive
Need help with money stuff - 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: Need help with money stuff (/showthread.php?tid=89061)



Need help with money stuff - tturvas - 30.07.2009

So...i made command to tele somewhere, and teleporting cost 2500, but you can teleport 4ever bcz the money will end off and go to minus's So when there is money less then 2500 i want it to say "You need atleast 2500$ to teleport".

Can somebody write here code ?


Re: Need help with money stuff - BMUK - 30.07.2009

pawn Код:
if(GetPlayerMoney(playerid) < 2500) return SendClientMessage(playerid,color,"You need atleast 2500$ to teleport");



Re: Need help with money stuff - James_Alex - 30.07.2009

try
pawn Код:
if(GetPlayerMoney(playerid) < 2500)
{
SendClientMessage(playerid, COLOR_LIGHTRED, "You nedd $2500 to teleport !");
return 1;
}
else
{
// bla bla bla... your tele function
}



Re: Need help with money stuff - tturvas - 30.07.2009

Tnx!!!!