27.12.2015, 11:43 
	
	
	
		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:
Thanks for your help!
	
	
	
	
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;
}






