move more server settings to config/server.pwn
This commit is contained in:
parent
3955ed0982
commit
eda738d00e
@ -10,10 +10,31 @@
|
||||
|
||||
/* ** Definitions ** */
|
||||
#define FILE_BUILD "v11.40.120"
|
||||
|
||||
#define SERVER_NAME "San Fierro Cops And Robbers (0.3.7)"
|
||||
#define SERVER_MODE_TEXT "Cops And Robbers / DM / Gangs"
|
||||
#define SERVER_MAP "San Fierro"
|
||||
#define SERVER_LANGUAGE "English"
|
||||
|
||||
#define SERVER_WEBSITE "www.sfcnr.com"
|
||||
#define SERVER_IP "54.36.127.43:7777"
|
||||
|
||||
/* ** Hooks ** */
|
||||
hook OnScriptInit( )
|
||||
{
|
||||
SetGameModeText( SERVER_MODE_TEXT );
|
||||
|
||||
SetServerRule( "hostname", SERVER_NAME );
|
||||
SetServerRule( "language", SERVER_LANGUAGE );
|
||||
SetServerRule( "mapname", SERVER_MAP );
|
||||
|
||||
UsePlayerPedAnims( );
|
||||
AllowInteriorWeapons( 0 );
|
||||
EnableStuntBonusForAll( 0 );
|
||||
DisableInteriorEnterExits( );
|
||||
return 1;
|
||||
}
|
||||
|
||||
/* ** Functions ** */
|
||||
stock IsPlayerLeadMaintainer( playerid )
|
||||
{
|
||||
|
@ -319,16 +319,6 @@ main()
|
||||
|
||||
public OnGameModeInit()
|
||||
{
|
||||
SetGameModeText( "Cops And Robbers / DM / Gangs" );
|
||||
SetServerRule( "hostname", SERVER_NAME );
|
||||
SetServerRule( "language", "English" );
|
||||
SetServerRule( "mapname", "San Fierro" );
|
||||
|
||||
UsePlayerPedAnims( );
|
||||
AllowInteriorWeapons( 0 );
|
||||
EnableStuntBonusForAll( 0 );
|
||||
DisableInteriorEnterExits( );
|
||||
|
||||
#if defined DEBUG_MODE
|
||||
mysql_log( LOG_ERROR | LOG_WARNING );
|
||||
#endif
|
||||
@ -10604,20 +10594,11 @@ public OnPlayerClickPlayer(playerid, clickedplayerid, source)
|
||||
// Functions //
|
||||
/////////////////////////
|
||||
|
||||
stock SetServerRule( rule[ ], value[ ] )
|
||||
stock SetServerRule( const rule[ ], const value[ ] )
|
||||
{
|
||||
new string[ 80 ];
|
||||
format( string, sizeof( string ), "%s %s", rule, value );
|
||||
SendRconCommand( string );
|
||||
return SendRconCommand( sprintf( "%s %s", rule, value ) );
|
||||
}
|
||||
|
||||
/*stock ReturnPlayerName( playerid )
|
||||
{
|
||||
GetPlayerName( playerid, szSmallString, MAX_PLAYER_NAME );
|
||||
if ( !IsPlayerConnected( playerid ) ) szSmallString = "No-one";
|
||||
return szSmallString;
|
||||
}*/
|
||||
|
||||
stock SetPlayerPosToPrison( playerid )
|
||||
{
|
||||
static const
|
||||
|
Loading…
Reference in New Issue
Block a user