Is there a command like this? Please help! - 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: Is there a command like this? Please help! (
/showthread.php?tid=102328)
Is there a command like this? Please help! -
DeltaAirlines12 - 14.10.2009
Ok, is there a command or something I can put under "OnGameModeInIt" that is like this command: (I made this one up)
OnGameModeRestart,GameTextForPlayer(playerid, "~b~End of round! Game mode restarting!", 1500, 6);
Thanks!
Re: Is there a command like this? Please help! -
Ritchie999 - 14.10.2009
/rcon login <password>
/rcon changemode [mode]
Re: Is there a command like this? Please help! -
DeltaAirlines12 - 14.10.2009
Quote:
Originally Posted by Ritchie999
/rcon login <password>
/rcon changemode [mode]
|
No, thats not really what I wanted.....
I have a timer so my game mode restarts every 5 minutes, I want it to say "Round Over!" or what ever while its showing the score board and restarting the game mode.
Re: Is there a command like this? Please help! -
Ritchie999 - 14.10.2009
i have no idea, im only new to scripting
Re: Is there a command like this? Please help! -
DeltaAirlines12 - 15.10.2009
Quote:
Originally Posted by Ritchie999
i have no idea, im only new to scripting
|
Oh
Re: Is there a command like this? Please help! -
Abernethy - 15.10.2009
Post your timer where you call the gmx. You can add it there.
Re: Is there a command like this? Please help! -
DeltaAirlines12 - 15.10.2009
Quote:
Originally Posted by Abernethy♥
Post your timer where you call the gmx. You can add it there.
|
These are what I used:
Код:
forward Restart();
public OnGameModeInIt()
{
SetTimer("Restart",900000,false);
return 1;
}
public Restart()
{
GameModeExit();
}
I got them here: (another one of my posts)
http://forum.sa-mp.com/index.php?top...90.0;topicseen
Re: Is there a command like this? Please help! -
Abernethy - 15.10.2009
Quote:
Originally Posted by DeltaAirlines12
Quote:
Originally Posted by Abernethy♥
Post your timer where you call the gmx. You can add it there.
|
These are what I used:
Код:
forward Restart();
public OnGameModeInIt()
{
SetTimer("Restart",900000,false);
return 1;
}
public Restart()
{
GameModeExit();
}
I got them here: (another one of my posts) http://forum.sa-mp.com/index.php?top...90.0;topicseen
|
Here, this should work.
pawn Код:
forward Restart();
public OnGameModeInIt()
{
SetTimer("Restart",900000,false);
return true;
}
public Restart()
{
SendRconCommand("gmx");
GameTextForAll("~b~End of round! Game mode restarting!", 1500, 6);
return true;
}
Re: Is there a command like this? Please help! -
DeltaAirlines12 - 15.10.2009
Quote:
Originally Posted by Abernethy♥
Quote:
Originally Posted by DeltaAirlines12
Quote:
Originally Posted by Abernethy♥
Post your timer where you call the gmx. You can add it there.
|
These are what I used:
Код:
forward Restart();
public OnGameModeInIt()
{
SetTimer("Restart",900000,false);
return 1;
}
public Restart()
{
GameModeExit();
}
I got them here: (another one of my posts) http://forum.sa-mp.com/index.php?top...90.0;topicseen
|
Here, this should work.
pawn Код:
forward Restart();
public OnGameModeInIt() { SetTimer("Restart",900000,false); return true; }
public Restart() { SendRconCommand("gmx"); GameTextForAll("~b~End of round! Game mode restarting!", 1500, 6); return true; }
|
It compiled fine! I will test it now! Thanks for your feedback!