09.03.2011, 18:15
(
Last edited by Kwarde; 17/10/2011 at 05:44 PM.
)
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)
Solution: Download the samp 0.3c package
2)
Solution: Add ZCMD into your includes (you'll probably won't get this error, it will be: See 3))
3)
Solution: Download the ZCMD command processor.
Video
[ame]http://www.youtube.com/watch?v=CFl1Fp1_lfk[/ame]
Regards,
Kevin
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"
2)
Code:
x : warning 203: symbol is never used: "lspdequip"
3)
Code:
x : fatal error 100: cannot read from file: "zcmd"
Video
[ame]http://www.youtube.com/watch?v=CFl1Fp1_lfk[/ame]
Regards,
Kevin