[Tutorial] Changing the map name from "San Andreas" to your own map name.
#9

Quote:
Originally Posted by (.Aztec);
View Post
Not too shabby, alot of people don't even know this exists.

You could also use a simple function I made, it does the exact same thing, but this is a bit "shorter", and looks better.

pawn Code:
forward SetMapName(mapName[]);

public SetMapName(mapName[])
{
    new string[30];
    format(string, sizeof(string), "mapname %s", mapName);
    SendRconCommand(string);
    return 1;
}

USAGE: SetMapName("Sky's World"); //would set the mapname to Sky's World
pawn Code:
#define SetMapName(%0) \
        SendRconCommand("mapname "%0)
Usage: SetMapName("Los Santos");
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)