SA-MP Forums Archive
[FilterScript] LSPD Equipment - 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] LSPD Equipment (/showthread.php?tid=237433)



LSPD Equipment - Kwarde - 09.03.2011

Hi there!
I've made a nice filterscript :P - LSPD Equipment.
With this, you can go equip yourself at the LSPD lockers room.

Features
* Dialog system, dialog ID's edittable (if you already use the ID's in another script). The same with the armour
* Select skin (guard, officer, motor officer, SWAT)
* Select weapons: Melee, Backup, Sub machine gun, Big weapon, Heavy weapon, Throw weapon, put back
* Put on/off armour with real object (samp custom object)
* When armour is 0 while you have it on, it'll be removed
* Health pills for health
* Select template (guard, patrol officer, swat / tactical)
* Open the dialog with /lspdequip at the open locked inside the LSPD lockers room

Installation
Copy the code from pastebin (see link below) and paste it to pawno.
Then, save it to your filterscripts (I saved it as ls_equip.pwn) and hit F5 to compile it.
You will need ZCMD

Download
Filterscript Source: http://pastebin.com/ynVB2VJf
PWN + AMX File: http://www.rpdsamp.nl/get/gta/sa/mp/...side/lspde.zip
ZCMD: https://sampforum.blast.hk/showthread.php?tid=91354

* Mods not made by me! Only placed in custom.img and custom.ide !

What can I edit?
You can edit the defines. They are placed on the top. Line 23 - 43 and the define MAX_SLOTS. The MAX_SLOTS defines the max players of your server.
Line 23-28
This are the lines for the ammo you'll get per weapon category.
Line 30-31
You probably don't need to edit this. If you use eg. Raven's roleplay it's good. But this are the dialog ID's.
Line 43
This is the armour attached object slot. Change it if you use another object with slot 0

Help!
Did you have a warning/error? Here are three things I can imagine
1)
Code:
x : error 017: undefined symbol "RemovePlayerAttachedObject"
x : error 017: undefined symbol "SetPlayerAttachedObject"
Solution: Download the samp 0.3c package

2)
Code:
x : warning 203: symbol is never used: "lspdequip"
Solution: Add ZCMD into your includes (you'll probably won't get this error, it will be: See 3))

3)
Code:
x : fatal error 100: cannot read from file: "zcmd"
Solution: Download the ZCMD command processor.

Video
[ame]http://www.youtube.com/watch?v=CFl1Fp1_lfk[/ame]

Regards,
Kevin


Re: LSPD Equipment - Ironboy - 09.03.2011

Good Job!


Re: LSPD Equipment - DartakousLien - 09.03.2011

Good job Kwarde!


Re: LSPD Equipment - Markx - 09.03.2011

haha awesome!!


Re: LSPD Equipment - Scrip - 09.03.2011

lol
nice


Re: LSPD Equipment - sherlock - 09.03.2011

Nice work


Re: LSPD Equipment - s1k - 09.03.2011

What I really noticed is your really awesome server logo in the bottom right corner. Tell me, how did you make that backwards "R" with textdraws lol.


Re: LSPD Equipment - ElChapoGuzman - 10.03.2011

LOL AWESOME NICE MAN


Re: LSPD Equipment - Kwarde - 10.03.2011

Quote:
Originally Posted by s1k
View Post
What I really noticed is your really awesome server logo in the bottom right corner. Tell me, how did you make that backwards "R" with textdraws lol.
Lol, it's raven's roleplay :P. (low-edit). It's a low-edit because the previous GM crashed -.-"
Go take a look in the raven's roleplay script; https://sampforum.blast.hk/showthread.php?tid=140427

And thanks everyone :P


Re: LSPD Equipment - marwan - 10.03.2011

where to find samp 0.3c package