SA-MP Forums Archive
How to change your gamemode? - 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: How to change your gamemode? (/showthread.php?tid=631851)



How to change your gamemode? - Electron123 - 05.04.2017

As title says I am using my host from ultra h
and also can you give me the code of CreateObject I edited some objects from map editor but dont know where to put them?
I wanna start my own server just want change the gamemode text to Death-Match Los Santos
or you can give me the filterscript xD


Re: How to change your gamemode? - NBass - 05.04.2017

Gamemode text? You mean a hostname on the server.cfg file?

To create objects in server, create a new filescript and add:
Quote:

#include <a_samp>
#include <streamer>
#include <core>
#include <float>
#define FILTERSCRIPT
#define NO_PERSONAL_OBJECTS
#define OBJECT_BOUNDS 100000


public OnGameModeInit()
{
CreateObject(11340, -2079.9531, 159.2031, 30.8672,0.00000, 0.00000, 0.00000,300.000); // Here the CreateObject,CreateDynamicObecjts codes below..

}




Re: How to change your gamemode? - Electron123 - 06.04.2017

Quote:
Originally Posted by NBass
Посмотреть сообщение
Gamemode text? You mean a hostname on the server.cfg file?

To create objects in server, create a new filescript and add:
I just want to change the gamemode name to any other name like cops N robbers

and should i put the includes name in the include folder like <Streamer> or something <zcmd> also in Gamemode folder


Re: How to change your gamemode? - Variable™ - 06.04.2017

To change the gamemode text:

Find https://sampwiki.blast.hk/wiki/SetGameModeText in your gamemode then change the text to the one you want.

Then recompile the script. If the script doesn't have this line, add it under OnGameModeInit and recompile your script.