Lock cars - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Lock cars (
/showthread.php?tid=131820)
Lock cars -
qwt - 05.03.2010
pawn Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(vehicleid == PlayerInfo[i][pPhousekey]+1)
{
SetVehicleParamsForPlayer(PlayerInfo[i][pPhousekey]+1, i, 0, 1);
}
}
return 1;
}
I have this code but it works only for my housecar.. I want to make for allhousecars.
Re: Lock cars -
boelie - 26.04.2010
well iknow that this is for all the vehicles;
Код:
public OnVehicleStreamIn(vehicleid, forplayerid)
{
if(VehicleLock[vehicleid] == 1)
{
SetVehicleParamsForPlayer(vehicleid,forplayerid,0,1);
}
return 1;
}
at the moment im learning how to make it for faction cars :S