SA-MP Forums Archive
RESOLVIDO - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: Non-English (https://sampforum.blast.hk/forumdisplay.php?fid=9)
+--- Forum: Languages (https://sampforum.blast.hk/forumdisplay.php?fid=33)
+---- Forum: Português/Portuguese (https://sampforum.blast.hk/forumdisplay.php?fid=34)
+---- Thread: RESOLVIDO (/showthread.php?tid=236680)



RESOLVIDO - [AF]Junior - 08.03.2011

knife ja resolveu ._.


Re: RESOLVIDO - lukas_loky - 08.03.2011

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;
}