//ongamemodeint SetTimer("ResetServer", 300000, 1); //elsewere forward Restart(); forward mapname(); forward ResetServer(); public OVER() { GameTextForAll("~r~ Time Limit Reached ~b~ Please Wait....", 2500 , 0); SetTimer("Restart", 10000 , 0); } public Restart() { GameTextForAll("~g~ Next Round~r~...", 2500, 0); SendRconCommand("changemode lvdm2"); // /gmx will just reload the mode currently loaded. return 1; } public mapname() { SendRconCommand("lvdm2"); return 1; }
public OVER() { GameTextForAll("~r~ Time Limit Reached ~b~ Please Wait....", 2500 , 0); SetTimer("Restart", 10000 , 0); }
public ResetServer() { GameTextForAll("~r~ Time Limit Reached ~b~ Please Wait....", 2500 , 0); SetTimer("Restart", 10000 , 0); }
Originally Posted by MaykoX
I think problem is here :
Код:
public OVER() { GameTextForAll("~r~ Time Limit Reached ~b~ Please Wait....", 2500 , 0); SetTimer("Restart", 10000 , 0); } To this : Код:
public ResetServer() { GameTextForAll("~r~ Time Limit Reached ~b~ Please Wait....", 2500 , 0); SetTimer("Restart", 10000 , 0); } |
//ongamemodeint SetTimer("ResetServer", 300000, 1); //on bottom of script forward Restart(); forward mapname(); forward ResetServer(); public ResetServer() { GameTextForAll("~r~ Time Limit Reached ~b~ Please Wait....", 2500 , 0); SetTimer("Restart", 10000 , 0); } public Restart() { GameTextForAll("~g~ Next Round~r~...", 2500, 0); SendRconCommand("changemode lvdm2"); // /gmx will just reload the mode currently loaded. return 1; } public mapname() { SendRconCommand("lvdm2"); return 1; }
SetTimer("gamemodechange", 10000, 1); // change 10000 to whatever time u want in milliseconds
forward gamemodechange(); public gamemodechange() { GameTextForAll("~r~ Time Limit Reached ~b~ Please Wait....", 2500 , 0); SendRconCommand("changemode lvdm2"); SendRconCommand("map lvdm2"); return 1; }
Originally Posted by [TF
Sasori ]
How do I change minutes for changing gm? Which one I need to change? Help! Maybe atleast 8 minutes |
forward ExitGamemodeFunc();
public OnGameModeInit()
{
SetTimer("ExitGamemodeFunc",/*your time in milliseconds here*/,false);
//other code here...
return 1;
}
ExitGamemodeFunc()
{
GameModeExit();
}
//ongamemodeint SetTimer("ResetServer", 300000, 1); //elsewere forward Restart(); forward mapname(); forward ResetServer(); public ResetServer() { GameTextForAll("~r~ Time Limit Reached ~b~ Please Wait....", 2500 , 0); SetTimer("Restart", 10000 , 0); } public Restart() { GameTextForAll("~g~ Next Round~r~...", 2500, 0); SendRconCommand("changemode lvdm2"); // /gmx will just reload the mode currently loaded. return 1; } public mapname() { SendRconCommand("lvdm2"); return 1; }
C:\Documents and Settings\user\Desktop\SAMPS\sa-mp0.3\filterscripts\test.pwn(2) : error 010: invalid function or declaration C:\Documents and Settings\user\Desktop\SAMPS\sa-mp0.3\filterscripts\test.pwn(10) : error 017: undefined symbol "GameTextForAll" C:\Documents and Settings\user\Desktop\SAMPS\sa-mp0.3\filterscripts\test.pwn(11) : error 004: function "SetTimer" is not implemented C:\Documents and Settings\user\Desktop\SAMPS\sa-mp0.3\filterscripts\test.pwn(17) : error 017: undefined symbol "GameTextForAll" C:\Documents and Settings\user\Desktop\SAMPS\sa-mp0.3\filterscripts\test.pwn(18) : error 017: undefined symbol "SendRconCommand" C:\Documents and Settings\user\Desktop\SAMPS\sa-mp0.3\filterscripts\test.pwn(25) : error 017: undefined symbol "SendRconCommand" C:\Documents and Settings\user\Desktop\SAMPS\sa-mp0.3\filterscripts\test.pwn(26) : warning 217: loose indentation Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase 6 Errors.