15.11.2010, 15:49
pawn Код:
stock LockVehicle(vehicleid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConencted(i))
{
SetVehicleParamsForPlayer(vehicleid, i, 0, 1);
VehicleLocked[vehicleid] = true;
}
}
return 1;
}
stock UnlockVehicle(vehicleid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConencted(i))
{
SetVehicleParamsForPlayer(vehicleid, i, 0, 0);
VehicleLocked[vehicleid] = false;
}
}
return 1;
}
stock IsVehicleLocked(vehicleid)
{
return VehicleLocked[vehicleid];
}