[FilterScript] LSPD Equipment
#1

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
Reply


Messages In This Thread
LSPD Equipment - by Kwarde - 09.03.2011, 18:15
Re: LSPD Equipment - by Ironboy - 09.03.2011, 18:42
Re: LSPD Equipment - by DartakousLien - 09.03.2011, 18:50
Re: LSPD Equipment - by Markx - 09.03.2011, 18:54
Re: LSPD Equipment - by Scrip - 09.03.2011, 19:00
Re: LSPD Equipment - by sherlock - 09.03.2011, 21:15
Re: LSPD Equipment - by s1k - 09.03.2011, 22:33
Re: LSPD Equipment - by ElChapoGuzman - 10.03.2011, 01:59
Re: LSPD Equipment - by Kwarde - 10.03.2011, 06:13
Re: LSPD Equipment - by marwan - 10.03.2011, 11:46

Forum Jump:


Users browsing this thread: 1 Guest(s)