06.08.2013, 14:07
Ok, So i'm wanting it so the driver's seat of the cop car is locked for all player's apart from cops
pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
if(IsVehicleCopCar(vehicleid) && RpPlayerInfo[foreplayerid][pFaction] == 0) // Or whatever team system you are using
{
SetVehicleParamsForPlayer(vehicleid, forplayerid, 0, 1); // Lock doors
}
return 1;
}
stock IsVehicleCopCar(vehicleid)
{
switch(GetVehicleModel(vehicleid))
{
case 523, 427, 490, 528, 596 .. 599, 601: return 1;
}
return 0;
}