16.09.2015, 13:39
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_EVENTS) mode=0; //To restart the event List..if it was at MAX_EVENTS
return 1;
}