[Ajuda] BUG CARROS TRANCADOS
#7

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    new string[256];
    GetPlayerName(playerid, sendername, sizeof(sendername));
    format(string, sizeof(string), "* %s Entra no veiculo.", sendername);
    ProxDetector(5.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
    if(Trancado[vehicleid] >= 1)
    {
        if(PlayerInfo[playerid][pAdmin] > 0 || ispassenger) { }
        else
        {
            new Float:x,Float:y,Float:z,Float:a;
            GetPlayerPos(playerid,x,y,z);
            GetPlayerFacingAngle(playerid,a);
            SetPlayerPos(playerid, x, y, z+0.3);
            SetPlayerFacingAngle(playerid, a);
            SendClientMessage(playerid, COLOR_YELLOW, "Veiculo Trancado!");
        }
    }
    return true;
}
Reply


Messages In This Thread
BUG CARROS TRANCADOS [URGENTE!!!] - by Eduardo Honorato - 05.10.2012, 03:08
Re: BUG CARROS TRANCADOS - by Coringa_Vilao - 05.10.2012, 03:27
Re: BUG CARROS TRANCADOS - by Eduardo Honorato - 05.10.2012, 03:32
Re: BUG CARROS TRANCADOS - by Piccoloґ - 05.10.2012, 03:34
Re: BUG CARROS TRANCADOS - by Eduardo Honorato - 05.10.2012, 04:01
Re: BUG CARROS TRANCADOS - by MatheusAlcapone - 05.10.2012, 04:10
Re: BUG CARROS TRANCADOS - by Eduardo Honorato - 05.10.2012, 04:32
Re: BUG CARROS TRANCADOS - by Eduardo Honorato - 05.10.2012, 17:57
Re: BUG CARROS TRANCADOS - by Jack_Bawer - 24.10.2012, 15:40
Re: BUG CARROS TRANCADOS - by Eduardo Honorato - 24.10.2012, 15:42

Forum Jump:


Users browsing this thread: 3 Guest(s)