Posts: 105
Threads: 18
Joined: Oct 2017
Reputation:
0
plz Can anybody help me with something like
"After 6 Min" my game will restart and will change gamemode exmp: grandlarc to lvdm
Posts: 48
Threads: 2
Joined: Dec 2015
Reputation:
0
One gamemode does not simply change can if you are trying host a server may we please see your server log and server configuration settings. If this is not the case please care to give more details to what's going on.
Posts: 105
Threads: 18
Joined: Oct 2017
Reputation:
0
am new plz u make and teach me
Posts: 105
Threads: 18
Joined: Oct 2017
Reputation:
0
----------
Loaded log file: "server_log.txt".
----------
SA-MP Dedicated Server
----------------------
v0.3.7-R2, ©2005-2015 SA-MP Team
[13:20:59]
[13:20:59] Server Plugins
[13:20:59] --------------
[13:20:59] Loaded 0 plugins.
[13:20:59]
[13:20:59] Filterscripts
[13:20:59] ---------------
[13:20:59] Loading filterscript 'gl_actions.amx'...
[13:20:59] Loading filterscript 'gl_realtime.amx'...
[13:20:59] Loading filterscript 'gl_property.amx'...
[13:20:59]
-----------------------------------
[13:20:59] Grand Larceny Property Filterscript
[13:20:59] -----------------------------------
[13:20:59] Loading filterscript 'gl_mapicon.amx'...
[13:20:59] Loading filterscript 'ls_elevator.amx'...
[13:20:59] Loading filterscript 'attachments.amx'...
[13:20:59] Loading filterscript 'skinchanger.amx'...
[13:20:59]
--Admin Player Skin Changer Loaded
[13:20:59] Loading filterscript 'vspawner.amx'...
[13:20:59]
--Admin Vehicle Spawner Loaded
[13:20:59] Loading filterscript 'ls_mall.amx'...
[13:20:59] Loading filterscript 'ls_beachside.amx'...
[13:20:59]
[13:20:59] |---------------------------------------------------
[13:20:59] |--- LS BeachSide Filterscript
[13:20:59] |-- Script v1.03
[13:20:59] |-- 19th April 2015
[13:20:59] |---------------------------------------------------
[13:20:59] |-- LS BeachSide Building Elevator created
[13:20:59] |---------------------------------------------------
[13:20:59] Loaded 10 filterscripts.
[13:20:59] Loaded 3 vehicles from: vehicles/trains.txt
[13:20:59] Loaded 3 vehicles from: vehicles/pilots.txt
[13:20:59] Loaded 15 vehicles from: vehicles/lv_law.txt
[13:20:59] Loaded 39 vehicles from: vehicles/lv_airport.txt
[13:20:59] Loaded 255 vehicles from: vehicles/lv_gen.txt
[13:20:59] Loaded 38 vehicles from: vehicles/sf_law.txt
[13:20:59] Loaded 35 vehicles from: vehicles/sf_airport.txt
[13:20:59] Loaded 353 vehicles from: vehicles/sf_gen.txt
[13:20:59] Loaded 24 vehicles from: vehicles/ls_law.txt
[13:20:59] Loaded 37 vehicles from: vehicles/ls_airport.txt
[13:20:59] Loaded 98 vehicles from: vehicles/ls_gen_inner.txt
[13:20:59] Loaded 389 vehicles from: vehicles/ls_gen_outer.txt
[13:20:59] Loaded 71 vehicles from: vehicles/whetstone.txt
[13:20:59] Loaded 168 vehicles from: vehicles/bone.txt
[13:20:59] Loaded 61 vehicles from: vehicles/flint.txt
[13:20:59] Loaded 96 vehicles from: vehicles/tierra.txt
[13:20:59] Loaded 96 vehicles from: vehicles/red_county.txt
[13:20:59] Total vehicles from files: 1781
[13:20:59] Reading File: blank
[13:20:59] Reading File: properties/houses.txt
[13:20:59] Reading File: properties/businesses.txt
[13:20:59] Reading File: properties/banks.txt
[13:20:59] Reading File: properties/police.txt
[13:20:59]
---------------------------------------
[13:20:59] Running Grand Larceny - by the SA-MP team
[13:20:59] ---------------------------------------
[13:20:59] Number of vehicle models: 173
Posts: 578
Threads: 40
Joined: Dec 2016
In server conf:
gamemode0 grandlarc 1
gamemode1 other_gm 1
in script:
PHP код:
public OnGameModeInit() {
SetTimer("OnServerRestartTimerEnd", true, 6*1000*60);
return 1;
}
forward public OnServerRestartTimerEnd();
public OnServerRestartTimerEnd() return SendRconCommand("gmx");
i believe this is how SAMP servers operate, i might be wrong as i've never done it this way
Posts: 240
Threads: 5
Joined: Nov 2017
every 6 minutes you want it to change?
send rcon message /rcon changemode [mode_here]
send rcon message /rcon gmx
Posts: 105
Threads: 18
Joined: Oct 2017
Reputation:
0
forward public OnServerRestartTimerEnd();
public OnServerRestartTimerEnd() return SendRconCommand("gmx");
return 1;
}
where should paste it?