Timer
#7

Quote:
Originally Posted by AnonScripter
Посмотреть сообщение
i don't understand, i want to make it 1 minute to could use the command again, so how the server would know that if i won't put 60000 milliseconds of time ?
PHP код:
new commandShopUsed[MAX_PLAYERS]; 
#define commandShopInterval 3600 //in seconds 
CMD:shop(playerid) { 
    if (
gettime() < commandShopUsed[playerid]) //
        
return SendClientMessage(playerid, -1"Please Wait to use this command again"); 
    
commandShopUsed[playerid] = gettime() + commandShopInterval
    
//Common code starts here 
    
return true

What exactly do not you understand? I can not exactly explain everything, I do not know English very well
Reply


Messages In This Thread
Timer - by AnonScripter - 24.09.2013, 21:09
Re: Timer - by DanishHaq - 24.09.2013, 21:30
Re: Timer - by =KempeR= - 24.09.2013, 21:42
Re: Timer - by AnonScripter - 24.09.2013, 22:25
Re: Timer - by Krakuski - 24.09.2013, 22:29
Re: Timer - by DanishHaq - 24.09.2013, 22:43
Re: Timer - by =KempeR= - 24.09.2013, 22:54
Re: Timer - by AnonScripter - 24.09.2013, 23:02
Re: Timer - by AnonScripter - 24.09.2013, 23:25
Re: Timer - by =KempeR= - 24.09.2013, 23:37

Forum Jump:


Users browsing this thread: 3 Guest(s)