Linking a house file to a player file.
#1

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

Anyone? Sorry to bump so early but I have to go soon
Reply
#3

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.
Reply
#4

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)