Command Timer + Random Prize [+REP]
#1

Hello,

Well, I want to add a timer for a command so that he can't use it till the specific time (3 hours) pass, and I want to make the money prize random between 1.000$ and 10.000$.
Here's the cmd:

Код:
CMD:getgift(playerid, params[])
{
	if(gPlayerLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
	{
		if(!IsPlayerInRangeOfPoint(playerid, 7.0, 1022.8253, -1853.5532, 13.5724)) return SendClientMessage(playerid, COLOR_GREY, "You are not at /getgift location.");
		SCM(playerid,COLOR_WHITE,"{FFFF00}You received 5000$ as a Christmas Gift.");
		GivePlayerCash(playerid,5000);
		Update(playerid, pCashx);
	}
	return 1;
}
Thanks for your help!
Reply


Messages In This Thread
Command Timer + Random Prize [+REP] - by EgyptForLife - 27.12.2015, 11:43
Re: Command Timer + Random Prize [+REP] - by SecretBoss - 27.12.2015, 11:51
Re: Command Timer + Random Prize [+REP] - by SilverStand - 27.12.2015, 11:59
Re: Command Timer + Random Prize [+REP] - by SecretBoss - 27.12.2015, 12:04
Re: Command Timer + Random Prize [+REP] - by EgyptForLife - 27.12.2015, 12:05
Re: Command Timer + Random Prize [+REP] - by SecretBoss - 27.12.2015, 12:10
Re: Command Timer + Random Prize [+REP] - by EgyptForLife - 27.12.2015, 12:17
Re: Command Timer + Random Prize [+REP] - by SecretBoss - 27.12.2015, 12:20
Re: Command Timer + Random Prize [+REP] - by iKarim - 27.12.2015, 12:22
Re: Command Timer + Random Prize [+REP] - by EgyptForLife - 27.12.2015, 12:25

Forum Jump:


Users browsing this thread: 1 Guest(s)