GETGIFT CMD
#6

Basically
Код:
new TimeCMD[MAX_PLAYERS];

CMD:getgift(playerid) 
{ 
    if(!IsPlayerConnected(playerid)) 
        return SendClientMessage(playerid, -1, "You must be logged in to do this."); 
	
	if(TimeCMD[playerid] > gettime())
		return SendClientMessage(playerid, -1, "You used this command."); 
	
	TimeCMD[playerid] = 2 * 60 * 60 + gettime();
	
	GetObjectPos(giftboxobject, giftPos[0], giftPos[1], giftPos[2]); 

    if(IsPlayerInRangeOfPoint(playerid, 5.0, giftPos[0], giftPos[1], giftPos[2]) && giftboxcreated == 1) 
    { 
    RandomGift(playerid); 
    } 
    return 1; 
}
Reply


Messages In This Thread
GETGIFT CMD - by LifeRah - 18.05.2016, 15:58
Re: GETGIFT CMD - by SyS - 18.05.2016, 16:05
Re: GETGIFT CMD - by LifeRah - 18.05.2016, 16:10
Re: GETGIFT CMD - by doreto - 18.05.2016, 16:10
Re: GETGIFT CMD - by LifeRah - 18.05.2016, 16:35
Re: GETGIFT CMD - by F1N4L - 18.05.2016, 16:58
Re: GETGIFT CMD - by LifeRah - 18.05.2016, 18:00
Re: GETGIFT CMD - by F1N4L - 18.05.2016, 18:06

Forum Jump:


Users browsing this thread: 2 Guest(s)