[Ajuda] Sistema de Carro parar de funcionar
#3

Ja tem...

pawn Код:
if(PRESSED(KEY_CROUCH))
    {
        if(IsPlayerInAnyVehicle(playerid)) return 0;
        if(PInfo[playerid][SPerk] == 11)
        {
            if(Team[playerid] == ZOMBIE) return 0;
            new Float:x,Float:y,Float:z,id;
            id = -1;
            for(new i; i < MAX_VEHICLES;i++)
            {
                GetVehiclePos(i,x,y,z);
                if(IsPlayerInRangeOfPoint(playerid,3.0,x,y,z))
                {
                    id = i;
                    break;
                }
                else continue;
            }
            if(id == -1) return 0;
            static Float:health;
            GetVehicleHealth(id,health);
            if(health >= 500.0) return SendClientMessage(playerid,white,"» "cred"[x] Este veнculo nгo precisa de conserto!");
            TurnPlayerFaceToPos(playerid, x-270, y-270);
            ApplyAnimation(playerid, "CAR" , "Fixn_Car_Out" , 2.0 , 0 , 0 , 1 , 0 , 5000 , 1);
            static string[100];
            format(string,sizeof string,""cjam"[ > ] %s(%i) ja preparou o seu veнculo",GetPName(playerid),playerid);
            SendNearMessage(playerid,white,string,20);
            SetVehicleHealth(id,health+250.0);
            SetTimerEx("ClearAnim",1500,false,"i",playerid);
        }
Reply


Messages In This Thread
Sistema de Carro parar de funcionar - by eNtinityGaming - 03.02.2014, 15:44
Re: Sistema de Carro parar de funcionar - by lucas_mdr1235 - 03.02.2014, 16:40
Re: Sistema de Carro parar de funcionar - by eNtinityGaming - 03.02.2014, 17:42
Re: Sistema de Carro parar de funcionar - by lucas_mdr1235 - 03.02.2014, 17:50

Forum Jump:


Users browsing this thread: 1 Guest(s)