SA-MP Forums Archive
how to chek mony - 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: how to chek mony (/showthread.php?tid=221493)



how to chek mony - Amine_Mejrhirrou - 05.02.2011

how can i chek player mony befor paying
Quote:

if(GetPlayerMoney(playerid) < 100)
{
SendClientMessage(playerid,GREEN,"you can't pay (no mony)");
return 1;
}

is that corect ?


Re: how to chek mony - Riddick94 - 05.02.2011

if players got lower money than 100 he will get message. But you can do it in one line:
Код:
if(GetPlayerMoney(playerid) < 100)return SendClientMessage(playerid, GREEN, "You can't pay (no mony)");



Re : how to chek mony - Amine_Mejrhirrou - 05.02.2011

ok thanks that's all i want to know