Cant get it done ....!
#1

Hey scripters
so I want that when I turn on my mode , all of the cars engines will be turned off...
Tried that under OnGameModeInIt()
pawn Код:
for(new v = 0; v < MAX_VEHICLES; v++)
{
    GetVehicleParamsEx(v,engine,lights,alarm,doors,bonnet,boot,objective);
    SetVehicleParamsEx(v,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
}
It doesnt work.
What to do ?
Thanks
Reply
#2

this is weird i tryed to do somethin like that and didnt work too the code looks alright btw
Reply
#3

Did you add the vehicles before you do this? As I guess you can't turn off vehicles that haven't been created yet. That's the only thing I can come to think of right now.
Reply
#4

Oh you right !
Thank you man .
Problem solved.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)