Server Map Help
#1

Hi, my current server is mapped at San Fierro, somehow when I look at the server list, it says my server is currently at San Andreas, how to change it to San Fierro? Thank you.
Reply
#2

In Server.cfg mapname San Fierro yes?
Reply
#3

Works, thanks. Rep+
Reply
#4

or you can just do

pawn Код:
SendRconCommand("mapname San Fierro");
Reply
#5

Made this for you.

pawn Код:
stock SetMapName( szMapName[] )
{
    new
        szMapCmd[ 64 ];
       
    format( szMapCmd, sizeof( szMapCmd ), "mapname %s", szMapName );
       
    SendRconCommand( szMapCmd );
   
}
Reply
#6

Quote:
Originally Posted by iggy1
Посмотреть сообщение
Made this for you.

pawn Код:
stock SetMapName( szMapName[] )
{
    new
        szMapCmd[ 64 ];
       
    format( szMapCmd, sizeof( szMapCmd ), "mapname %s", szMapName );
       
    SendRconCommand( szMapCmd );
   
}
What is this for? Is it ZCMD?
Reply
#7

Its a function use it with any command processor. Here's a crude example.

pawn Код:
SetMapName( szMapName[] )
{
    new
        szMapCmd[ 64 ];
       
    format( szMapCmd, sizeof( szMapCmd ), "mapname %s", szMapName );
       
    SendRconCommand( szMapCmd );
   
}

COMMAND:mapname(playerid, params[])
{
    if( !isnull(params) )
    {
        if( IsPlayerAdmin(playerid) )
        {
            SetMapName( params );
        }
    }
    return 1;
}
Reply
#8

Wow, thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)