RESOLVIDO
#1

knife ja resolveu ._.
Reply
#2

O comando ta falando que se o player for adm level 1 ou mais ele vai ser kikado do carro, e se for menor que level 1 ele pode ficar, entao й so inverter
pawn Код:
if(PlayerInfo[playerid][PlayerAdmin] <= 1)   { }
POR
pawn Код:
if(PlayerInfo[playerid][PlayerAdmin] => 1)   { }
FICANDO ---->
pawn Код:
public OnPlayerStateChange( playerid, newstate, oldstate)
{
                if ( newstate == PLAYER_STATE_DRIVER)
                {
                new vid = GetPlayerVehicleID( playerid)   ;
                if ( vid==Adms[0]||vid==Adms[1]||vid==Adms[2]||vid==Adms[3]||vid==Adms[4]||vid==Adms[5]||vid==Adms[6]||vid==Adms[7]||vid==Adms[8]||vid==Adms[9]||vid==Adms[10]||vid==Adms[11]||vid==Adms[12]||vid==Adms[13]||vid==Adms[14]||vid==Adms[15]||vid==Adms[16]||vid==Adms[17]||vid==Adms[18]||vid==Adms[19]||vid==Adms[20]||vid==Adms[21]||vid==Adms[22])
                {
                if(PlayerInfo[playerid][PlayerAdmin] => 1)   { }
                else
                {
                SendClientMessage ( playerid ,  0xFF0000FF ,  "Vocк nгo й Administrador!");
                RemovePlayerFromVehicle( playerid)   ;
                TogglePlayerControllable( playerid, 1)   ;
                }
                }
                }
                return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)