SA-MP Forums Archive
simple help with vehicleprams:D - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: simple help with vehicleprams:D (/showthread.php?tid=266952)



simple help with vehicleprams:D - Honest_Player - 06.07.2011

helo friends,
how are u?

i need helpwith >>>

vehicleparams

i want in my scrit all players cant enter in vehicle!

plz help me


Re: simple help with vehicleprams:D - HayZatic - 06.07.2011

So you want pretty Much a personal Vehicle?


Re: simple help with vehicleprams:D - Shadoww5 - 06.07.2011

https://sampwiki.blast.hk/wiki/SetVehicleParamsEx


Re: simple help with vehicleprams:D - Honest_Player - 06.07.2011

i want no one can enter in any vehicle cuz my script is TDM and i want all vehicles as model


Re: simple help with vehicleprams:D - Honest_Player - 06.07.2011

thanks its work buut how to off engine

PHP код:
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,1,lights,alarm,doors,bonnet,boot,objective); 



Re: simple help with vehicleprams:D - Deskoft - 06.07.2011

pawn Код:
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(vid,0,lights,alarm,doors,bonnet,boot,objective);



Re: simple help with vehicleprams:D - Shadoww5 - 06.07.2011

If you want all the vehicles are shut down when GM starts, use this:

PHP код:
public OnGameModeInit()
{
    new 
engine,lights,alarm,doors,bonnet,boot,objective;
    for(new 
0MAX_VEHICLES++)
    {
        
GetVehicleParamsEx(i,engine,lights,alarm,doors,bonnet,boot,objective);
        
SetVehicleParamsEx(i,0,lights,alarm,doors,bonnet,boot,objective);  
    }
    return 
1;




Re: simple help with vehicleprams:D - Honest_Player - 06.07.2011

how i add code in PWN CODE: SHAPE?


Re: simple help with vehicleprams:D - Deskoft - 06.07.2011

[ PAWN ] and [ / PAWN ] brackets (without space)


Re: simple help with vehicleprams:D - Honest_Player - 06.07.2011

pawn Код:
public OnGameModeInit()
{
    new engine,lights,alarm,doors,bonnet,boot,objective;
    for(new i = 0; i < MAX_VEHICLES; i ++)
    {
        GetVehicleParamsEx(i,engine,lights,alarm,doors,bonnet,boot,objective);
        SetVehicleParamsEx(i,0,lights,alarm,doors,bonnet,boot,objective);  
    }
    return 1;
}
work!


Re: simple help with vehicleprams:D - Shadoww5 - 06.07.2011

Could you click at the star beside ?

I helped you *-*


Re: simple help with vehicleprams:D - alpha500delta - 06.07.2011

Quote:
Originally Posted by Shadoww5
Посмотреть сообщение
Could you click at the star beside ?

I helped you *-*
Asking for reputation is so lame