Need help with money stuff
#1

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 ?
Reply
#2

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

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

Tnx!!!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)