SetVehicleParamsForPlayer not working...
#1

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
Reply
#2

SetVehicleParamsForPlayer(596, playerid, 0, 1)


I think you meant to the model id.
SetVehicleParamsForPlayer function requests the vehicle id, not the vehicle model id.
Reply
#3

Alright, so then what do i put?
Reply
#4

Find out the vehicles id from load, most likely saving it to a variable.
Reply
#5

0.0
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)