Timer Minutes countdown?
#7

Just like this:

PHP Code:
//You can say..u make 10 diffrent Events:
#define MAX_EVENTS 10
new mode//@top of the script
//OnGameModeInit
SetTimer(!"@event",1000*60*7,1);
/*
    For explanation:
    1000ms = 1sec
    60sec = 1min
    7 = 7min
*/
//Then the timer:
@event();@event() {
    for(new 
i=GetPlayerPoolSize()+1; --i!=-1;) {
        if(!
IsPlayerConnected(i) || IsPlayerNPC(i)) continue;
        switch(
mode) {
            case 
0: {
                
//Here is the First event
                
GivePlayerWeapon(i,24,500); //Give all players a weapon
                
SetPlayerPos(i,x,y,z); //to set him at a special position
            
}
            case 
1: {
                
//After 14min here is the second event...u can make diffrent things
            
}
            
//And so on..
        
}
    }
    if(++
mode == MAX_EVENTSmode=0//To restart the event List..if it was at MAX_EVENTS
    
return 1;

Reply


Messages In This Thread
Timer Minutes countdown? - by karemmahmed22 - 15.09.2015, 14:16
Re: Timer Minutes countdown? - by karemmahmed22 - 15.09.2015, 19:25
Re: Timer Minutes countdown? - by [KHK]Khalid - 15.09.2015, 21:39
Re: Timer Minutes countdown? - by karemmahmed22 - 16.09.2015, 05:26
Re: Timer Minutes countdown? - by amirm3hdi - 16.09.2015, 07:14
Re: Timer Minutes countdown? - by [KHK]Khalid - 16.09.2015, 13:34
AW: Timer Minutes countdown? - by Kaliber - 16.09.2015, 13:39

Forum Jump:


Users browsing this thread: 1 Guest(s)