09.07.2011, 11:29
hello here is my code when i add this its not lock vehicles in my tdm server i want to lock all cars or tell me where i add this players sill drives vehicles and i dontwant they drive just fight
plz check the code i use it OnGameModeINT plz help
pawn Код:
//==========================Vehicles lock for ever==============================
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);
}