simple help with vehicleprams:D
#1

helo friends,
how are u?

i need helpwith >>>

vehicleparams

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

plz help me
Reply
#2

So you want pretty Much a personal Vehicle?
Reply
#3

https://sampwiki.blast.hk/wiki/SetVehicleParamsEx
Reply
#4

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

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); 
Reply
#6

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);
Reply
#7

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;

Reply
#8

how i add code in PWN CODE: SHAPE?
Reply
#9

[ PAWN ] and [ / PAWN ] brackets (without space)
Reply
#10

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!
Reply
#11

Could you click at the star beside ?

I helped you *-*
Reply
#12

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)