How can i create a cmd that can be used once in a while
#5

Quote:
Originally Posted by Abagail
Посмотреть сообщение
Something like this then:

pawn Код:
CMD:givememoney(playerid, params[])
{
     if(PlayerData[playerid][pLastCashGet] >= gettime())
     {
           GivePlayerCash(playerid, 1000);
           PlayerData[playerid][pLastCashGet] = gettime()+86400;
     }
     else return SendClientMessage(playerid, -1, "You have already used this command today. Try again tommorow.");
}
Thank you, +1 rep!
Reply


Messages In This Thread
How can i create a cmd that can be used once in a while - by RTRSorin - 23.12.2014, 18:24
Re: How can i create a cmd that can be used once in a while - by Abagail - 23.12.2014, 18:29
Re: How can i create a cmd that can be used once in a while - by RTRSorin - 23.12.2014, 18:32
Re: How can i create a cmd that can be used once in a while - by Abagail - 23.12.2014, 18:39
Re: How can i create a cmd that can be used once in a while - by RTRSorin - 23.12.2014, 18:46

Forum Jump:


Users browsing this thread: 1 Guest(s)