How to change your gamemode?
#1

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
Reply
#2

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..

}

Reply
#3

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
Reply
#4

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.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)