SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help > Help Archive

 
 
Thread Tools Display Modes
Old 06/11/2009, 03:00 PM   #1
Nameless303
Huge Clucker
 
Join Date: Jul 2009
Location: Belgium
Posts: 203
Reputation: 0
Default Mini Missions

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!

Nameless303 is offline  
Old 06/11/2009, 03:07 PM   #2
Lajko1
High-roller
 
Join Date: Oct 2008
Posts: 1,234
Reputation: 17
Default Re: Mini Missions

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 ...
Lajko1 is offline  
Old 06/11/2009, 03:13 PM   #3
Nameless303
Huge Clucker
 
Join Date: Jul 2009
Location: Belgium
Posts: 203
Reputation: 0
Default Re: Mini Missions

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 (:
Nameless303 is offline  
Old 06/11/2009, 04:45 PM   #4
MachineHead
Huge Clucker
 
Join Date: Nov 2008
Posts: 215
Reputation: 0
Default Re: Mini Missions

Multiple Gamemodes, when one finishes http://wiki.sa-mp.com/wiki/SendRconCommand to load the next gamemode.
MachineHead is offline  
Old 06/11/2009, 04:47 PM   #5
Nameless303
Huge Clucker
 
Join Date: Jul 2009
Location: Belgium
Posts: 203
Reputation: 0
Default Re: Mini Missions

Quote:
Originally Posted by clum'
Multiple Gamemodes, when one finishes http://wiki.sa-mp.com/wiki/SendRconCommand to load the next gamemode.
Do I have to put something like;
Code:
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
Nameless303 is offline  
Old 06/11/2009, 05:11 PM   #6
Ironboy500
Huge Clucker
 
Join Date: Jul 2009
Posts: 284
Reputation: 0
Default Re: Mini Missions

Put Follwoing under OnGameModeInit:

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

Code:
forward ExitGamemode();
     Public ExitGameMode()
     {
     SendRconCommand ("gmx");
     }
Enjoy! Good Luck!
Ironboy500 is offline  
Old 06/11/2009, 05:12 PM   #7
Ironboy500
Huge Clucker
 
Join Date: Jul 2009
Posts: 284
Reputation: 0
Default Re: Mini Missions

Put Follwoing under OnGameModeInit:

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

Code:
forward ExitGamemode();
     Public ExitGameMode()
     {
     SendRconCommand ("gmx");
     }
Enjoy! Good Luck!
Ironboy500 is offline  
Old 06/11/2009, 06:42 PM   #8
MadeMan
High-roller
 
MadeMan's Avatar
 
Join Date: Jun 2007
Posts: 3,488
Reputation: 256
Default Re: Mini Missions

Quote:
Originally Posted by Nameless303
Do I have to put something like;
Code:
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 http://wiki.sa-mp.com/wiki/GameModeExit
MadeMan is offline  
Old 06/11/2009, 06:51 PM   #9
Tigerbeast11
Gangsta
 
Join Date: Aug 2009
Posts: 771
Reputation: 2
Default Re: Mini Missions

You could set a timer to exit the gm automatically after 8 minutes or something?
Tigerbeast11 is offline  
Old 06/11/2009, 06:54 PM   #10
Luka P.
High-roller
 
Join Date: Feb 2009
Posts: 1,428
Reputation: 13
Default Re: Mini Missions

Config file (server.cfg)
pawn Code:
gamemode0 gmName1
gamemode1 gmName2
...
You've should put this in every GM
pawn Code:
forward gmExit();
pawn Code:
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 Code:
public gmExit()
{
    SendRconCommand("gmx"); // next gamemode
    return 1;
}
Luka P. is offline  
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [FS] Mini-Missions 111vovan111 Filterscripts 7 07/10/2011 09:44 PM


All times are GMT. The time now is 12:18 PM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.