SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Scripting Help

Reply
 
Thread Tools Display Modes
Old 10/11/2013, 11:23 AM   #1
Riwerry
Huge Clucker
 
Join Date: Oct 2013
Posts: 415
Reputation: 3
Unhappy Weapons saving to trunk

Hello guys, is possible to create trunk system, what will save weapons in it? I want to save weapons in trunk to .ini. For example how it should look. Player comes near trunk, he type some command, then will some dialog appear with 3 slots to save, then he can take weapons take back.. Rly big thx..
Riwerry is offline   Reply With Quote
Old 10/11/2013, 11:53 AM   #2
Loot
Huge Clucker
 
Join Date: Nov 2013
Posts: 235
Reputation: 17
Default Re: Weapons saving to trunk

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.
Loot is offline   Reply With Quote
Old 10/11/2013, 12:33 PM   #3
Riwerry
Huge Clucker
 
Join Date: Oct 2013
Posts: 415
Reputation: 3
Default Re: Weapons saving to trunk

Well mate, I am not that good pawner. Can you vice me an example? Thx
Riwerry is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
taking weapons from the trunk, whats a fast way to script it? Apenmeeuw Scripting Help 2 05/03/2013 06:36 PM
Trunk Saving Problem TheHoodRat Help Archive 3 22/11/2010 05:03 PM
[Help] Saving Weapons Nakash Help Archive 9 27/08/2009 03:37 AM
Saving Weapons zallomallo Help Archive 1 05/06/2009 07:30 PM
WHO CAN MAKE ME A TRUNK SAVING CODE gerard_solo Help Archive 1 02/06/2009 08:57 PM


All times are GMT. The time now is 11:36 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.