SA-MP Forums Archive
Solved - 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: Solved (/showthread.php?tid=121775)



Solved - MaykoX - 18.01.2010

I wan't to change gamode on peroid time, im searching for 15 minutes and finding NOTHING.

I know about this :

Quote:

SendRconCommand("x-tdm");

but i wan't to do it with timer. So if anyone can help me.

Yes i know im stupid :P




Re: [HELP]Changing GameMode to Another - BurningSWA - 18.01.2010

log in as rcon admin
Код:
/rcon login [password]
than do
Код:
/rcon changemode [GM name]
always works


Re: [HELP]Changing GameMode to Another - MaykoX - 18.01.2010

Quote:
Originally Posted by BurningSWA
log in as rcon admin
Код:
/rcon login [password]
than do
Код:
/rcon changemode [GM name]
always works
... i am not so much stupid.... I want to do that gamemode automaticaly changes.


Re: [HELP]Changing GameMode to Another - LuxurioN™ - 18.01.2010

Simple, create a timer with 15 seconds

Then create a function to execute:

pawn Код:
SendRconCommand("changemode x-tdm");
_________________________________________________

Basic Exemple:

pawn Код:
SetTimer("ChangeNewMode", 15000, true);
pawn Код:
public ChangeNewMode(playerid)
{
SendRconCommand("changemode x-tdm");
return 1;
}



Re: [HELP]Changing GameMode to Another - MaykoX - 18.01.2010

Quote:
Originally Posted by © Tђэ LυxυяiσN™
Simple, create a timer with 15 seconds

Then create a function to execute:

pawn Код:
SendRconCommand("changemode x-tdm");
pawn Код:
SetTimer("ChangeNewMode", 15000, true);
pawn Код:
public ChangeNewMode(playerid)
{
SendRconCommand("changemode x-tdm");
return 1;
}
Thanks, Thanks and THANKS :P