09.04.2011, 12:03
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...
Sorry For BAD ENGLISH...
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;
}