setlevel was not working for level 6 ... moved server defs to _config
This commit is contained in:
parent
0a18215da9
commit
22f69ca1be
@ -260,7 +260,7 @@ CMD:setlevel( playerid, params[ ] )
|
|||||||
iLevel
|
iLevel
|
||||||
;
|
;
|
||||||
if ( !IsPlayerAdmin( playerid ) && p_AdminLevel[ playerid ] < 6 ) return SendError( playerid, ADMIN_COMMAND_REJECT );
|
if ( !IsPlayerAdmin( playerid ) && p_AdminLevel[ playerid ] < 6 ) return SendError( playerid, ADMIN_COMMAND_REJECT );
|
||||||
else if ( sscanf( params, "d", pID, iLevel ) ) SendUsage( playerid, "/setlevel [PLAYER_ID] [LEVEL]");
|
else if ( sscanf( params, "ud", pID, iLevel ) ) SendUsage( playerid, "/setlevel [PLAYER_ID] [LEVEL]");
|
||||||
else if ( iLevel < 0 || iLevel > 6 ) return SendError( playerid, "Please specify an administration level between 0 and 6." );
|
else if ( iLevel < 0 || iLevel > 6 ) return SendError( playerid, "Please specify an administration level between 0 and 6." );
|
||||||
else if ( !IsPlayerConnected( pID ) || IsPlayerNPC( pID ) ) return SendError( playerid, "Invalid Player ID." );
|
else if ( !IsPlayerConnected( pID ) || IsPlayerNPC( pID ) ) return SendError( playerid, "Invalid Player ID." );
|
||||||
else
|
else
|
||||||
|
@ -8,3 +8,9 @@
|
|||||||
/* ** Includes ** */
|
/* ** Includes ** */
|
||||||
#include "irresistible\config\database.pwn" // keep #1
|
#include "irresistible\config\database.pwn" // keep #1
|
||||||
#include "irresistible\config\colors.pwn"
|
#include "irresistible\config\colors.pwn"
|
||||||
|
|
||||||
|
/* ** Configuration ** */
|
||||||
|
#define FILE_BUILD "v11.36.105"
|
||||||
|
#define SERVER_NAME "San Fierro Cops And Robbers (0.3.7)"
|
||||||
|
#define SERVER_WEBSITE "www.sfcnr.com"
|
||||||
|
#define SERVER_IP "54.36.127.43:7777"
|
||||||
|
@ -112,13 +112,6 @@ new bool: False = false;
|
|||||||
|
|
||||||
#define CreateBillboard(%0,%1,%2,%3,%4) SetDynamicObjectMaterialText(CreateDynamicObject(7246,%1,%2,%3,0,0,%4),0,(%0),120,"Arial",24,0,-1,-16777216,1)
|
#define CreateBillboard(%0,%1,%2,%3,%4) SetDynamicObjectMaterialText(CreateDynamicObject(7246,%1,%2,%3,0,0,%4),0,(%0),120,"Arial",24,0,-1,-16777216,1)
|
||||||
|
|
||||||
/* ** Configuration ** */
|
|
||||||
#define FILE_BUILD "v11.36.105"
|
|
||||||
#define SERVER_NAME "San Fierro Cops And Robbers (0.3.7)"
|
|
||||||
#define SERVER_WEBSITE "www.sfcnr.com"
|
|
||||||
#define SERVER_IP "192.169.82.202:7777"
|
|
||||||
|
|
||||||
|
|
||||||
//#define MAX_WEAPONS 54
|
//#define MAX_WEAPONS 54
|
||||||
#define MAX_CLASS_BAN_WARNS 3
|
#define MAX_CLASS_BAN_WARNS 3
|
||||||
#define MAX_CAR_MODS 15
|
#define MAX_CAR_MODS 15
|
||||||
@ -14549,7 +14542,7 @@ function OnSafeHelperUpdate( playerid, robberyid )
|
|||||||
Float: distance = distanceFromSafe( playerid, robberyid )
|
Float: distance = distanceFromSafe( playerid, robberyid )
|
||||||
;
|
;
|
||||||
|
|
||||||
if ( robberyid == INVALID_OBJECT_ID || distance > 100.0 || !IsPlayerConnected( playerid ) || !IsPlayerSpawned( playerid ) )
|
if ( robberyid == INVALID_OBJECT_ID || distance > 100.0 || ! IsPlayerConnected( playerid ) || ! IsPlayerSpawned( playerid ) || IsPlayerInCasino( playerid ) || IsPlayerPlayingPool( playerid ) )
|
||||||
{
|
{
|
||||||
p_SafeHelperTimer[ playerid ] = -1;
|
p_SafeHelperTimer[ playerid ] = -1;
|
||||||
HidePlayerHelpDialog( playerid );
|
HidePlayerHelpDialog( playerid );
|
||||||
|
Loading…
Reference in New Issue
Block a user