06.09.2015, 07:04
You could try locking the doors so they can't even attempt. By locking the doors when the vehicle is streamed in.
Tidied up a bit by using switch.
Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
switch( GetVehicleModel(vehicleid) )
{
case 599, 596, 597, 598, 497, 520, 528, 425, 427, 532, 490:
{
if (!AccInfo[forplayerid][Police])
SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 1);
else
SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 0);
}
}
return 1;
}

