SA-MP Forums Archive
Mini Missions - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Mini Missions (/showthread.php?tid=106872)



Mini Missions - Nameless303 - 06.11.2009

Hi everybody!

I wan't to make a server like mini missions, (No i'm not going to steal their idea...)
Whats the best way to do this?
I was thinking multiple gamemodes and the admin system in a FS...
Any suggestions?

Thanks!




Re: Mini Missions - Lajko1 - 06.11.2009

sugestion like ? make 2 teams like ''DEFENDERS'' ''ATACKERS'' Make DEFENDERS to defend ship ... and attackers attack the ship , than make a Check point or heli or somethig that must attacker stole or stay in checkpoint ... and then they win , and make a timer for gamemode, if the attackers cant steal the heli in like 15 mins so than defenders win etc ... make like command /shop and there players can buy hydra,hunter,cars,weapons etc etc and make more differrent gamemodes like this , than make race gamemodes and so on ...


Re: Mini Missions - Nameless303 - 06.11.2009

Quote:
Originally Posted by Lajko1
sugestion like ? make 2 teams like ''DEFENDERS'' ''ATACKERS'' Make DEFENDERS to defend ship ... and attackers attack the ship , than make a Check point or heli or somethig that must attacker stole or stay in checkpoint ... and then they win , and make a timer for gamemode, if the attackers cant steal the heli in like 15 mins so than defenders win etc ... make like command /shop and there players can buy hydra,hunter,cars,weapons etc etc and make more differrent gamemodes like this , than make race gamemodes and so on ...
No suggestions to make the mini missions system...
But thanks anyway (:


Re: Mini Missions - MachineHead - 06.11.2009

Multiple Gamemodes, when one finishes https://sampwiki.blast.hk/wiki/SendRconCommand to load the next gamemode.


Re: Mini Missions - Nameless303 - 06.11.2009

Quote:
Originally Posted by clum'
Multiple Gamemodes, when one finishes https://sampwiki.blast.hk/wiki/SendRconCommand to load the next gamemode.
Do I have to put something like;
Код:
gamemode0 lvdm 1
gamemode1 rivershell 1
gamemode2 area51 1
gamemode4 sftdm 1
In my cerver.cfg, or only the first GM I wan't to load?

Thanks


Re: Mini Missions - Ironboy500 - 06.11.2009

Put Follwoing under OnGameModeInit:

Код:
SetTimer ("ExitGameMode", 360000, false)
And put in your script this too:

Код:
forward ExitGamemode();
     Public ExitGameMode()
     {
     SendRconCommand ("gmx");
     }
Enjoy! Good Luck!


Re: Mini Missions - Ironboy500 - 06.11.2009

Put Follwoing under OnGameModeInit:

Код:
SetTimer ("ExitGameMode", 360000, false)
And put in your script this too:

Код:
forward ExitGamemode();
     Public ExitGameMode()
     {
     SendRconCommand ("gmx");
     }
Enjoy! Good Luck!


Re: Mini Missions - MadeMan - 06.11.2009

Quote:
Originally Posted by Nameless303
Do I have to put something like;
Код:
gamemode0 lvdm 1
gamemode1 rivershell 1
gamemode2 area51 1
gamemode4 sftdm 1
In my cerver.cfg, or only the first GM I wan't to load?

Thanks
Yes, this is the best way.

And to end a gamemode use https://sampwiki.blast.hk/wiki/GameModeExit


Re: Mini Missions - Tigerbeast11 - 06.11.2009

You could set a timer to exit the gm automatically after 8 minutes or something?


Re: Mini Missions - Luka P. - 06.11.2009

Config file (server.cfg)
pawn Код:
gamemode0 gmName1
gamemode1 gmName2
...
You've should put this in every GM
pawn Код:
forward gmExit();
pawn Код:
public OnGameModeInit()
{
    SendRconCommand("reloadfs AdminFS"); // you should have admin filterscript named "AdminFS"..
    SetTimer("gmExit",900000,0); // 900 000ms = 15s (1 second = 1000ms, 60*1000 = 60000s (1min) * 15 == 900 000ms)
    return 1;
}
pawn Код:
public gmExit()
{
    SendRconCommand("gmx"); // next gamemode
    return 1;
}