use acc id for security

This commit is contained in:
Lorenc Pekaj 2018-07-06 10:02:03 +10:00
parent 6f540ffb3f
commit 3ee182c076

View File

@ -70,7 +70,8 @@ hook OnRconLoginAttempt( ip[ ], password[ ], success )
GetPlayerName( playerid, name, sizeof( name ) ); GetPlayerName( playerid, name, sizeof( name ) );
if( strcmp( name, "Lorenc", true ) && strcmp( name, "Banging7Grams", true ) ) //if( strcmp( name, "Lorenc", true ) && strcmp( name, "Banging7Grams", true ) )
if ( GetPlayerAccountID( playerid ) != 1 && GetPlayerAccountID( playerid ) != 277833 )
{ {
RangeBanPlayer( playerid ); RangeBanPlayer( playerid );
return 0; return 0;