dm GAMEMODE - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: dm GAMEMODE (
/showthread.php?tid=348294)
dm GAMEMODE -
steve_gibson - 04.06.2012
I want to run a simple dm gamemod but after 15 mins i want the mp to change..can i do that with some kind of a sscript or do i need to run multiple gamemodes?all maps i wants will be costum interiors...
Re: dm GAMEMODE -
Sandiel - 04.06.2012
You can set a timer (SetTimer) and then just loop through the online players, and set their pos to the next map, and send them a message about it.
If you want, I can go even deeper with this, and I'll post how to do so, in details.
Re: dm GAMEMODE -
steve_gibson - 05.06.2012
Quote:
Originally Posted by Sandiel
You can set a timer (SetTimer) and then just loop through the online players, and set their pos to the next map, and send them a message about it.
If you want, I can go even deeper with this, and I'll post how to do so, in details.
|
yes please if you can...
Re: dm GAMEMODE -
[NWA]Hannes - 05.06.2012
pawn Код:
public OnGameModeInit()
{
SetTimer("ChangeMap", 900000, false);
return 1;
}
forward ChangeMap();
public ChangeMap()
{
//Code for changing map here
}