Linking a house file to a player file. - 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)
+--- Thread: Linking a house file to a player file. (
/showthread.php?tid=298846)
Linking a house file to a player file. -
Snowman12 - 22.11.2011
Hey,
Guys I have got really stuck with somthing. Linking files how can I link a house file or a car file to a player file so it is classed as theirs? and they can use all the commands on it?
Saving System is Y_INI
Thanks Snowman
Re: Linking a house file to a player file. -
Snowman12 - 22.11.2011
Anyone? Sorry to bump so early but I have to go soon
Re: Linking a house file to a player file. -
JamesC - 22.11.2011
You need a variable in the playerfile, like PlayerVehicle and a unique variable in the Vehicle file, like VehID. Then when the player buys the vehicle, you set PlayerVehicle to VehID. To find out if the player entering the vehicle owns it, check to see if PlayerVehicle matches VehID.
Re: Linking a house file to a player file. -
Snowman12 - 22.11.2011
YOur help really helped me and I worked out the rest from trolling this..
https://sampforum.blast.hk/showthread.php?tid=298737&page=2
Thanks +REP