Posts: 44
	Threads: 6
	Joined: Jan 2010
	
Reputation: 
0
	 
 
	
		
		
		
		08.10.2010, 20:03 
(
 Последний раз редактировалось Tommie1331; 08.10.2010 в 20:30.
					
					
						Причина: rewritien
)
	
	 
	
		Hay im making a server like mini-missions to realse with about 100 gamemodes i have made 2 to test it will work the only problem is i dont now how to change the game mode for example
change the mayor
to
Fallout
does it use somthing like this SendRconCommand(changemode *Your Gamemode*); if so where does it go and how do i do it if anyone knows a easyer way please say im open to all suggestions
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 211
	Threads: 26
	Joined: Sep 2010
	
Reputation: 
0
	 
 
	
	
		I think you want a Filterscript..... A game mode is the BASE of your server. Filterscripts are added code. ( they look just like Gamemodes except there called Filterscripts
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 44
	Threads: 6
	Joined: Jan 2010
	
Reputation: 
0
	 
 
	
	
		Gorge lopez i edited it make any more sense?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 724
	Threads: 62
	Joined: Dec 2008
	
Reputation: 
0
	 
 
	
	
		SendRconCommand("changemode namegoeshere");
change the namegoeshere to the gamemode that you saved, so if you have a fallout.amx, change it so it looks like
SendRconCommand("changemode fallout");
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 44
	Threads: 6
	Joined: Jan 2010
	
Reputation: 
0
	 
 
	
	
		thanks mate but ive worked out a timed way i will realse this changer no doubt its getting me fucked off anywayz i made a thing it changed and then it will kick all my players?
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 44
	Threads: 6
	Joined: Jan 2010
	
Reputation: 
0
	 
 
	
		
		
		
		08.10.2010, 21:08 
(
 Последний раз редактировалось Tommie1331; 08.10.2010 в 21:57.
					
					
						Причина: more errors fixed
)
	
	 
	
		right guys i started again because of the kicking here my script
// This is a comment
// uncomment the line below if you want to write a filterscript
#define FILTERSCRIPT
#include <a_samp>
#if defined FILTERSCRIPT
forward GMswitch();
public OnFilterScriptInit()
{
	print("\n--------------------------------------");
	print(" Gamemode Changer");
	print("--------------------------------------\n");
	return 1;
}
public OnGameModeInit()
{
    SetTimer("GMswitch",30000,true);
public GMswitch()
{
	SendRconCommand("changemode The_Mayor");
    return 1;
	}
	#endif
but where do i add the next gm change?
also there are errors
EDIT form *2*
*C:\Users\Brad\Desktop\MINI MISSIONS\filterscripts\GamemodeChanger.pwn(23) : warning 217: loose indentation
C:\Users\Brad\Desktop\MINI MISSIONS\filterscripts\GamemodeChanger.pwn(23) : error 029: invalid expression, assumed zero
C:\Users\Brad\Desktop\MINI MISSIONS\filterscripts\GamemodeChanger.pwn(23) : error 004: function "GMswitch" is not implemented
C:\Users\Brad\Desktop\MINI MISSIONS\filterscripts\GamemodeChanger.pwn(30) : error 030: compound statement not closed at the end of file (started at line 21)
Pawn compiler 3.2.3664	 	 	Copyright © 1997-2006, ITB CompuPhase
3 Errors.
i fixed ssome errors but im still stuck*
once i see a full complete version of thiss and see it i will no how but im well and truley stumped so if you can complete and fix this one ill be overjoyed and happy 
because then i can get on with my server also can you lay out where id put the next one if your gonna rescript so i can get a idea of how to make 100 or more
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 44
	Threads: 6
	Joined: Jan 2010
	
Reputation: 
0
	 
 
	
		
		
		
		08.10.2010, 21:10 
(
 Последний раз редактировалось Tommie1331; 08.10.2010 в 21:30.
					
					
						Причина: shouldnt lose hope
)
	
	 
	
		i dont give up ssorry i no omone knows how somwhere
	
	
	
	
		
	
 
 
	
	
	
		
	Posts: 44
	Threads: 6
	Joined: Jan 2010
	
Reputation: 
0
	 
 
	
	
		GUY I FIXED IT IM TESTING IT THE ILL GET BACK TO YOU WISH ME LUCK