How to add map+timer?
#1

Hello...
Im back to learn abit of script again.
And i wounder how i add another map and a map timer for the map to switch to the 2:nd map?
Reply
#2

Make a function that changes the map. Something like this:

pawn Код:
forward MapChange();
pawn Код:
public MapChange()
{
SendClientMessageToAll(-1, "Map is changing...");
 // Do something else here
return 1;
}
And under OnGameModeInit:

pawn Код:
SetTimer("MapChange",10*60000, 1); // 10*60000 means 1 mapround is 10 minutes, the 1 at the back is there so that the timer repeats itself after 10 minutes
Reply
#3

Quote:
Originally Posted by Da_Noob
Посмотреть сообщение
Make a function that changes the map. Something like this:

pawn Код:
forward MapChange();
pawn Код:
public MapChange()
{
SendClientMessageToAll(-1, "Map is changing...");
 // Do something else here
return 1;
}
And under OnGameModeInit:

pawn Код:
SetTimer("MapChange",10*60000, 1); // 10*60000 means 1 mapround is 10 minutes, the 1 at the back is there so that the timer repeats itself after 10 minutes
Thanks.
Gonna try this.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)