Posts: 10
Threads: 5
Joined: Aug 2010
Reputation:
0
09.08.2010, 03:40
(
Последний раз редактировалось [SCRP]Cody; 10.08.2010 в 16:00.
)
I'm currently editing a roleplay script for Streamwood County RP. I don't know why but when i put all the setvehicleparams for the vehicles i want locked under onplayerspawn, they don't do anything. The player has to type /civilian to get them to lock. All the vehicles are locked to factions and are unlocked when they log into them. Where should I put the setvehicleparams to make them lock when the player spawns?
Any help would be appreciated and I'm sorry if someone has posted about this before, I couldn't find any help for this actually searching for it first.
-[SCRP]Cody
Posts: 425
Threads: 32
Joined: Mar 2009
Reputation:
0
You have to lock vehicles in "public OnVehicleStreamIn(vehicleid, forplayerid)"
Posts: 10
Threads: 5
Joined: Aug 2010
Reputation:
0
09.08.2010, 04:45
(
Последний раз редактировалось [SCRP]Cody; 09.08.2010 в 05:01.
)
Now when I paste all of the setvehicleparams under that, it gives me errors going
(Error) undefined symbol "playerid"
That happens when the line is like this
SetVehicleParamsForPlayer(1, playerid, 0, 1);
Any idea how to fix that? Do I need to edit something to make it work for the onvehiclestreamin since it works fine everywhere else?
Posts: 160
Threads: 23
Joined: Sep 2008
Reputation:
0
change playerid to forplayerid
Posts: 424
Threads: 21
Joined: Jun 2008
Reputation:
0
why did you bump it? a fix was posted already.
Posts: 10
Threads: 5
Joined: Aug 2010
Reputation:
0
09.08.2010, 22:42
(
Последний раз редактировалось [SCRP]Cody; 09.08.2010 в 23:20.
)
Alright, thanks for the help guys, I got it figured out now.
Edit-Nevermind, we have a new problem, since you logging into a faction is supposed to unlock the vehicles. It does, but only for a little bit since putting it under onvehiclestreamin causes them to relock when you go barely away. Is there any way to lock them onplayerspawn so they don't do that?
Posts: 10
Threads: 5
Joined: Aug 2010
Reputation:
0
Anyone? This is an extremely annoying thing to have to deal with. I really want it fixed.