[PEDIDO] Veнculos Restritos RCON.
#5

Quote:
Originally Posted by [D]r._.pLэ
Посмотреть сообщение
pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new modelo = GetVehicleModel(GetPlayerVehicleID(playerid));
    if(modelo == 520 || modelo == 425 || modelo == 432 || modelo == 447)
    {
        if(IsPlayerAdmin(playerid))
        {
            SendClientMessage(playerid,0x972FFFAA,"* Veiculo restritro para adminstradores!");
            RemovePlayerFromVehicle(playerid);
            TogglePlayerControllable(playerid, 1);
        }
    }
    return 1;
}
Salve Salve Dr, vim aqui sу para dar um pequeno aviso na boa internзгo , vocк se esqueceu do ! ali no IsPlayerAdmin!

O Codigo correto seria este:

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    new modelo = GetVehicleModel(GetPlayerVehicleID(playerid));
    if(modelo == 520 || modelo == 425 || modelo == 432 || modelo == 447)
    {
        if(!IsPlayerAdmin(playerid))
        {
            SendClientMessage(playerid,0x972FFFAA,"* Veiculo restritro para adminstradores!");
            RemovePlayerFromVehicle(playerid);
            TogglePlayerControllable(playerid, 1);
        }
    }
    return 1;
}
Reply


Messages In This Thread
[PEDIDO] Veнculos Restritos RCON. - by Mercurio - 26.03.2012, 19:59
Re: [PEDIDO] Veнculos Restritos RCON. - by DouglasRodrigues - 26.03.2012, 20:53
Re: [PEDIDO] Veнculos Restritos RCON. - by Mercurio - 26.03.2012, 20:57
Re: [PEDIDO] Veнculos Restritos RCON. - by ViniBorn - 26.03.2012, 21:00
Re: [PEDIDO] Veнculos Restritos RCON. - by marcelodell - 26.03.2012, 21:01
Re: [PEDIDO] Veнculos Restritos RCON. - by Mercurio - 26.03.2012, 21:02
Re: [PEDIDO] Veнculos Restritos RCON. - by marcelodell - 26.03.2012, 21:05
Re: [PEDIDO] Veнculos Restritos RCON. - by marcelodell - 26.03.2012, 21:08
Re: [PEDIDO] Veнculos Restritos RCON. - by Mercurio - 26.03.2012, 21:30
Re: [PEDIDO] Veнculos Restritos RCON. - by marcelodell - 26.03.2012, 22:13

Forum Jump:


Users browsing this thread: 1 Guest(s)