SA-MP Forums Archive
money - 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 (/showthread.php?tid=247431)



money - Cenation - 09.04.2011

hi frnd.. i have created a command /money in this player gets $50000 how can I do i like player can use this only 1 time...

Sorry For BAD ENGLISH...


Re: money - Shelby - 09.04.2011

An example using PVars & ZCMD.
pawn Код:
CMD:money(playerid, params[])
{
    if(GetPVarInt(playerid, "Money") == 1)return SendClientMessage(playerid, 0x00FF00AA, "You cannot do this anymore. =(");
    GivePlayerMoney(playerid, 50000);
    SendClientMessage(playerid, 0x00FF00AA, "You have earned 50.$000. =)");
    SetPVarInt(playerid, "Money", 1);
    return 1;
}



Re: money - Cenation - 09.04.2011

thankz cool...