SA-MP Forums Archive
[FilterScript] [FS] Spike Boxes - 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] [FS] Spike Boxes (/showthread.php?tid=87557)

Pages: 1 2


[FS] Spike Boxes - Trooper[Y] - 20.07.2009

Function (Scenario):Situation of Civilists:Situation of Suspects: Settings (to make it easy for you to change it for your server):
Код:
//--------------------- Server Settings ----------------------------------

// _________________________ Testmodus ________________________________________
new testing = 0; //if testing = 1, you can use /setskin to get copskin, giving easiest way to test the script
// _________________________ Performance ______________________________________
new checkms = 50; //How often to check after spikes ? (the lower, the faster cars get detected) (50 seemded to be enough)
new ruckelms = 200; //how often block the control of damaged cars ?
new checkmssparend = 500; // how often to check after spike boxes, if wheels already damaged ?
// _________________________ Reperatur ________________________________________
new kosten = 200; //costs of one repair in p`n`s (remember: theres already 100$ fee)
new moeglichradius = 4; //radius of pay`n`sprays, where you can use /changespikedwheels

Commands:
(Cop meaning Skin ID 280-28
Quote:

/spikes (Place Spike Box in front of you) (Require Cop)
/spikeaway [ID] (Remove Spike Box) (Require Cop)
/setskin (Give you Copskin) (Require testing = 1 (see settings))
/resetband (Reloads Script) (Require RCON)
/changespikedwheels (Repair popped Wheels) (you need to be in a special pay`n`spray , every city have got only 1, see below)

How to repair Vehicle:
a) Destroy Vehicle
b) Get Vehicle to Pay`n`Spray (see screenshots, the marker is on p`n`s )
LV : /imageshack/img21/4729/samp013b.png
SF: /imageshack/img21/6662/samp017h.png
LS: /imageshack/img21/9413/samp015x.png

Video:
Click here to get to Video

Screenshots:
Click here to get straight to Album

Copyright:


Download:
Pastebin

Nicksoft:
Blog Beware, German
******* Mainly Offtopic + German
Website
ICQ

Have Fun,
and post like hell
Trooper

P.S.: If youve got a lot of members, use Model-ID
Код:
2899
, then you can increase
Код:
checkms
, and increase PlayerToPoint around Line 567


Re: [FS] Spike Boxes - Lewwy - 20.07.2009

Wow this is unique, I made my own version but this tops it.
Good job.


Re: [FS] Spike Boxes - Weirdosport - 20.07.2009

It's a good idea, but I can see there are a lot of relatively fast timers, presumably with loops in them.. If this were to be used on an already overloaded RPG server I can imagine there being lag.


Re: [FS] Spike Boxes - Trooper[Y] - 20.07.2009

More People told me about this, so i got another way to handle it.
Look at the "P.S." in Start post !
If you use the other mdoel (which is 2times as big as the other),
you can double the fastest timers....


Re: [FS] Spike Boxes - Snickers - 21.07.2009

Wow, very nice one.


Re: [FS] Spike Boxes - Correlli - 21.07.2009

Good work.


Re: [FS] Spike Boxes - propilot - 21.07.2009

Good job man!


Re: [FS] Spike Boxes - ionaustin - 21.07.2009

omfg someone finnaly understand the spike strip idea THANKS
I will use in my server


Re: [FS] Spike Boxes - Sayaron - 21.07.2009

Very good FS! Im gona use this on my server


Re: [FS] Spike Boxes - gtalover12 - 22.07.2009

Hmm, looking through the script, i can see there is alot of fast timers - 50ms, 200ms, 500ms..
As Thomas_Conroy said, this inplemented into a full RPG script will cause alot of lagg, also with the loops + timers..
Try to inprove the script so it doesn't eat all your CPU.


Re: [FS] Spike Boxes - Trooper[Y] - 24.07.2009

Please, please read 1st Post "P.S."
Quote:

P.S.: If youve got a lot of members, use Model-ID 2899 , then you can increase checkms (and other timers), and increase PlayerToPoint-Radius around Line 567

It gives you the Instruction you need for healing script, if you have got too many users (30+).


Re: [FS] Spike Boxes - SureShot - 24.07.2009

Hey I found a bug!

Sucks. But nice FS.

GTA SA:MP - Spike Boxes Bug

SureShot


Re: [FS] Spike Boxes - Trooper[Y] - 24.07.2009

Thanks for your report, fixed
*edited startpost*


Re: [FS] Spike Boxes - SureShot - 24.07.2009

The bug wasn't fixed!


Re: [FS] Spike Boxes - serj009 - 24.07.2009

omg this guy.. lol
good job


Re: [FS] Spike Boxes - Trooper[Y] - 24.07.2009

Quote:

The bug wasn't fixed!

Sure ?
I edited download like 1 minute after posting...
But ill try now...

/edit:
Ur right, NOW fixed


Re: [FS] Spike Boxes - SureShot - 24.07.2009

Damn. LoL. No. I can Press "look back" and the vehicle dont stop o.O


Re: [FS] Spike Boxes - SureShot - 26.07.2009

I can't check, why you use the keys: example: 288

#define KEY_ACTION (1)
#define KEY_CROUCH (2)
#define KEY_FIRE (4)
#define KEY_SPRINT (
#define KEY_SECONDARY_ATTACK (16)
#define KEY_JUMP (32)
#define KEY_LOOK_RIGHT (64)
#define KEY_HANDBRAKE (12
#define KEY_LOOK_LEFT (256)
#define KEY_SUBMISSION (512)
#define KEY_LOOK_BEHIND (512)
#define KEY_WALK (1024)
#define KEY_ANALOG_UP (204
#define KEY_ANALOG_DOWN (4096)
#define KEY_ANALOG_RIGHT (16384)
#define KEY_ANALOG_LEFT (8192)
#define KEY_UP (6540
#define KEY_DOWN (12
#define KEY_LEFT (6540
#define KEY_RIGHT (12

I cant find Key 288 and more ... i dont check it...


Re: [FS] Spike Boxes - NEW_IE - 28.07.2009

Shit is Awsome


Re: [FS] Spike Boxes - Trooper[Y] - 31.07.2009

Thx.
If you want to prevent pressing multiple keys, you have to cqlculqte zith them.
So add forward to lookleft, to make player event when pressing both keys