SA-MP Forums Archive
[FilterScript] Saveable Player Attachments - 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: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+--- Thread: [FilterScript] Saveable Player Attachments (/showthread.php?tid=407491)



Saveable Player Attachments - Richie© - 14.01.2013

Savable Player Attachments


This script is based on the attachments script by h02 which is included in 0.3e server pack.


What is added here?
- It now saves the players attached objects in mysql database, all 10 slots (R7 required for the cache functions).
- The objects are always saved, but you can take them off when you dont want them on the player and you can put them back on player later by chosing 'Wear/take off one of your items' in /playerobjects.
- All 10 player attachments (that is enabled) are automaticly set when player spawns

Pictures:

Main menu (/playerobjects)


Player has added objects in slot 0,1 and 2. All 3 are enabled and will be put on player on spawn, by clicking on one of theese 3 items, they will be disabled and wont appear when player spawn until they are enabled again.


In this menu player can add or replace an object in one of their slots.
The edit items menu looks exactly the same but with possibility to permanently delete an item.


If any bugs is found, you can report it in this thread and i will fix whenever i got time.

What is needed to compile this?
Includes: a_samp, zcmd and a_mysql

Made for 0.3e and later versions.
BlueG's mysql R7 plugin is required for this script to run.
No, i wont make a .ini version of this. (i never really used it for anything)

Download:
.amx: http://localhostr.com/DjfuauBppxhR
.pwn: http://localhostr.com/1UgnISDsBpWB
Pastebin: http://pastebin.com/y0R8Tes4


Re: Saveable Player Attachments - ProPoint - 15.01.2013

EDIT : Sorry, i'm not read the description first


Re: Saveable Player Attachments - Richie© - 15.01.2013

What do you mean?


Re: Saveable Player Attachments - fanta291327 - 17.01.2013

Very Nice If It Works!!!!
Suckish if it doesnt :P
Testing now


Re: Saveable Player Attachments - AMEENAMEEN - 22.01.2013

got something with ini


Re: Saveable Player Attachments - kepa333 - 03.02.2013

can you make it in strcmp and dini?


Re: Saveable Player Attachments - sun14 - 04.02.2013

SERVER:Unknown Command

How to fix it ?


Re: Saveable Player Attachments - Alvon - 05.02.2013

That's perfect. Congratulations on your efforts.

Note - Well done.

#March


Re: Saveable Player Attachments - sun14 - 07.02.2013

SERVER:Unknown Command


Re: Saveable Player Attachments - Anak - 07.02.2013

Quote:
Originally Posted by sun14
Посмотреть сообщение
SERVER:Unknown Command
change return value from
pawn Код:
return 1;
to:
pawn Код:
return 0;
hope it will not come