[AJUDA]Nгo estб checando direito!!!
#3

Tente assim:

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        for(new c = 0; c < sizeof(carrosadm); c++)
        {
            new L_C = GetPlayerVehicleID(playerid);
            if(L_C == carrosadm[c])
            {
                if(!IsPlayerAdmin(playerid))
                {
                    new L_P[7]; GetVehicleParamsEx(L_C, L_P[0], L_P[1], L_P[2], L_P[3], L_P[4], L_P[5], L_P[6]);
                    SetVehicleParamsEx(L_C, 0, L_P[1], L_P[2], L_P[3], L_P[4], L_P[5], L_P[6]);
                    SendClientMessage(playerid, verde, "vc nao pode usar este veiculo!!!!!");
                    return 1;
                }
            }
        }
    }
    return 1;
}
Abraзos.
Reply


Messages In This Thread
[AJUDA]Nгo estб checando direito!!! - by Detonador - 12.05.2012, 23:49
Re: [AJUDA]Nгo estб checando direito!!! - by zbt - 12.05.2012, 23:53
Re: [AJUDA]Nгo estб checando direito!!! - by Lуs - 12.05.2012, 23:57
Re: [AJUDA]Nгo estб checando direito!!! - by kazekene - 13.05.2012, 00:03
Re: [AJUDA]Nгo estб checando direito!!! - by Detonador - 13.05.2012, 00:07

Forum Jump:


Users browsing this thread: 1 Guest(s)