Weapons saving to trunk
#2

Of course it's possible...
Create a file to each vehicle exist in your gamemode, and place them on a seperate folder, the index of the .txt files should have the vehicleid as the name of the file so it can be lately use, and store 3 variables inside each file or whatever amount of weapons you want.

When player wants to store a weapon, get the vehicle that he stands near, then format a string to that specific vehicleid file, and store x weapons in its variables (slots). Same goes with taking the guns, get the vehicleid and store inside them 0 on the slot you took. Not that hard.
Reply


Messages In This Thread
Weapons saving to trunk - by Riwerry - 10.11.2013, 11:23
Re: Weapons saving to trunk - by Loot - 10.11.2013, 11:53
Re: Weapons saving to trunk - by Riwerry - 10.11.2013, 12:33

Forum Jump:


Users browsing this thread: 3 Guest(s)