SetVehicleParamsForPlayer not working... - 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: SetVehicleParamsForPlayer not working... (
/showthread.php?tid=89204)
SetVehicleParamsForPlayer not working... -
gemadon - 31.07.2009
I put this under OnPlayerSpawn
Код:
OnPlayerSpawn(playerid)
{
if(Faction[playerid] != 3)
{
SetVehicleParamsForPlayer(596, playerid, 0, 1)
}
return 1;
}
And for some reason, players who are still not cops can still enter the police vehicle (ID 596) can someone help?
Oh AND, is there a function to check if 2 players are in the same car? Thanks
Re: SetVehicleParamsForPlayer not working... -
MenaceX^ - 31.07.2009
SetVehicleParamsForPlayer(596, playerid, 0, 1)
I think you meant to the model id.
SetVehicleParamsForPlayer function requests the vehicle id, not the vehicle model id.
Re: SetVehicleParamsForPlayer not working... -
gemadon - 31.07.2009
Alright, so then what do i put?
Re: SetVehicleParamsForPlayer not working... -
Chaprnks - 31.07.2009
Find out the vehicles id from load, most likely saving it to a variable.
Re: SetVehicleParamsForPlayer not working... -
gemadon - 31.07.2009
0.0