Server Map Help - 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: Server Map Help (
/showthread.php?tid=346602)
Server Map Help -
Raiden Dragneel - 29.05.2012
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.
Re: Server Map Help -
Legolas.W - 29.05.2012
In Server.cfg mapname San Fierro yes?
Re: Server Map Help -
Raiden Dragneel - 29.05.2012
Works, thanks. Rep+
Re: Server Map Help -
JaKe Elite - 29.05.2012
or you can just do
pawn Код:
SendRconCommand("mapname San Fierro");
Re: Server Map Help -
iggy1 - 29.05.2012
Made this for you.
pawn Код:
stock SetMapName( szMapName[] )
{
new
szMapCmd[ 64 ];
format( szMapCmd, sizeof( szMapCmd ), "mapname %s", szMapName );
SendRconCommand( szMapCmd );
}
Re: Server Map Help -
Raiden Dragneel - 29.05.2012
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?
Re: Server Map Help -
iggy1 - 29.05.2012
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;
}
Re: Server Map Help -
Raiden Dragneel - 29.05.2012
Wow, thanks.