23.06.2012, 17:13
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:
Can someone help me about that? No errors, but when I try the script, I see that no cars are locked.
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;
}