automatic gamemode change problem
#1

hello

I hope somebody can help me with my problem:
I'm trying to make a server with multiple gamemodes witch switches every 15 - 20 minutes.

I already have something:

Код:
// on top or above the function
forward GMswitch

// ongamemodeinit
SetTimer("GMswitch",30000,true); // gamemode switch test GMSWITCH

// down on the script
public GMswitch(playerid)
{
  GameModeExit();
	return 1;
}
with this function it restarts the server every 30 seconds (the 30 seconds i will change later, so don't mind that, it's just for testing)
but I don't want it to restart the server/gamemode
I want it to load a new gamemode
Any help?

I've searched the whole web so maybe somebody could help me by giving me a good link or just explain or whatever


thanks
Reply
#2

pawn Код:
// on top or above the function
forward GMswitch();

// ongamemodeinit
SetTimer("GMswitch",30000,true); // gamemode switch test GMSWITCH

// down on the script
public GMswitch()
{
    SendRCONCommand("changemode modename");
    return 1;
}
Reply
#3

thanks! I will test it i think it will work

I tried it like that before (with sendRconCommand() but a little different, this is what i tried... but thank you!! very much.

[EDIT] oh and it has to be: SendRconCommand, not SendRCONcommand just a little detail for other people
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)