Spawning all cars as locked
#1

I'm kinda new to scripting and I'm working on a gamemode right now. I want to get all cars spawned as locked, I've tried that code but it didn't work:

pawn Код:
public OnVehicleSpawn(vehicleid)
{
    Engine[vehicleid] = 0;
    Lights[vehicleid] = 0;
    Doors[vehicleid] = 1;
    Alarm[vehicleid] = 0;
    Bonnet[vehicleid] = 0;
    Boot[vehicleid] = 0;
    Objective[vehicleid] = 0;
    SetVehicleParamsEx(vehicleid, Engine[vehicleid], Lights[vehicleid], Alarm[vehicleid], Doors[vehicleid], Bonnet[vehicleid], Boot[vehicleid], Objective[vehicleid]);
    return 1;
}
Can someone help me about that? No errors, but when I try the script, I see that no cars are locked.
Reply


Messages In This Thread
Spawning all cars as locked - by Calabresi - 23.06.2012, 17:13
Re: Spawning all cars as locked - by SuperViper - 23.06.2012, 18:02
Re: Spawning all cars as locked - by Calabresi - 24.06.2012, 09:21

Forum Jump:


Users browsing this thread: 1 Guest(s)