carro trancado
#1

Entгo, eu baixei a Gm do brasil play start, Dono: Theus_Crazy, mais os veiculos estгo trancados do spawn civil, jб procurei tudo na gm, mais nгo achei, podem min uma ajudinha ai ?
Reply
#2

Recomendo vocк Estudar mais a Linguagem e fazer o seu proprio GameMode

Alguns Tutoriais -
https://sampforum.blast.hk/showthread.php?tid=497801
Reply
#3

Procura por

PHP код:
SetVehicleParamsEx 
quando achar posta aqui o cуdigo (provavelmente estб na callback OnGamemodeInit).
Reply
#4

pawn Код:
new engine, lights, alarm, doors, bonnet, boot, objective;
SetVehicleParamsEx(vehicleid, engine, lights, alarm, 0, bonnet, boot, objective);
ponha isso em public OnVehicleSpawn(vehicleid)

No lugar de vehicleid,poi o id do carro do spawn civil
ex:,id do carro й 500
pawn Код:
SetVehicleParamsEx(500, engine, lights, alarm, 0, bonnet, boot, objective);
Se quiser abrir a porta de todos os carros :

pawn Код:
new i;
for(i=0;i<=MAX_VEHICLES;i++)
{
SetVehicleParamsEx(i ,engine, lights, alarm, 0, bonnet, boot, objective);
}
Reply
#5

PHP код:
SetVehicleParamsEx(veh,VEHICLE_PARAMS_ON,farois,alarm,doors,bonnet,boot,objective);
                    
Engine[playerid]=1;
                }
                else if(
Engine[playerid]==|| engine == 1)
                {
                    
SetVehicleParamsEx(veh,VEHICLE_PARAMS_OFF,farois,alarm,doors,bonnet,boot,objective);
                    
Engine[playerid]=0;
                }
            }
            if(
listitem==4)
            {
                if(!
IsPlayerInVehicle(playeridPlayerInfo[playerid][pChave])) return SendClientMessage(playerid0x77EEA1FF"[BPF Veнculo] {FFFFFF}Vocк Precisa estar dentro do seu Veнculo para Ligar ou Desligar o Farol!");
                new 
veh PlayerInfo[playerid][pChave],engine,farois,alarm,doors,bonnet,boot,objective;
                
GetVehicleParamsEx(veh,engine,farois,alarm,doors,bonnet,boot,objective);
                if(
Farois[playerid]==|| farois ==0)
                {
                    
SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_ON,alarm,doors,bonnet,boot,objective);
                    
Farois[playerid]=1;
                }
                else if(
Farois[playerid]==|| farois == 1)
                {
                    
SetVehicleParamsEx(veh,engine,VEHICLE_PARAMS_OFF,alarm,doors,bonnet,boot,objective);
                    
Farois[playerid]=0;
                }
            } 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)