Next Game not working. - 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)
+--- Thread: Next Game not working. (
/showthread.php?tid=398348)
Next Game not working. -
JaKe Elite - 09.12.2012
After the server restarts.
I set the NextGame variable to 1, 2, 3.
But it didn't work. The next game has not been loaded.
The game didn't changed.
I mean like in Minimission, Minigames.
I tried this.
pawn Code:
public RestartForNextGame()
{
if(NextGame == 0)
{
SendClientMessageToAll(COLOR_PINK, "Next game will be ''Minigun Madness''");
NextGame = 1;
SendRconCommand("gmx");
}
else if(NextGame == 1)
{
SendClientMessageToAll(COLOR_PINK, "Next game will be ''Cops'n'Gangs''");
NextGame = 2;
SendRconCommand("gmx");
}
else if(NextGame == 2)
{
SendClientMessageToAll(COLOR_PINK, "Next game will be ''Freighter''");
NextGame = 3;
SendRconCommand("gmx");
}
SendRconCommand("changemode blank2"); //even if i remove this
SendRconCommand("changemode Games"); //even if i remove this
return 1;
}
It's the same
here is Example OnGameModeInit
pawn Code:
else if(NextGame == 1)
{
SetGameModeText("Minigun Madness");
EndGame = SetTimer("EndAndNextGame", 1000*60*6, false);
ShowPlayerMarkers(0);
new i, j;
AddPlayerClass(250, 0.0, 0.0, 0.0, 0.0, 0, 0, 0, 0, 0, 0);
for (i = 0, j = sizeof(gMinigunPickups); i < j; i++)
{
AddStaticPickup(362, 15, gMinigunPickups[i][PickupX], gMinigunPickups[i][PickupY], gMinigunPickups[i][PickupZ]);
}
for (i = 0, j = sizeof(gParachutePickups); i < j; i++)
{
AddStaticPickup(371, 15, gParachutePickups[i][PickupX], gParachutePickups[i][PickupY], gParachutePickups[i][PickupZ]);
}
}
Any idea how to change it to next game?
Re: Next Game not working. -
Trollolollo - 09.12.2012
Romel,Can you share this script after it fix....thats what i want to add into my server....
sorry cause i cant help u.....