[FilterScript] [FS] Spike Boxes
#1

Function (Scenario):
  • Cop is preparing Spike Boxes and is waiting behind
Situation of Civilists:
  • Civ. drive over Spike Boxes (if he cant see him fast enough)
  • Civ. get popped wheels
  • Doing some RP Stuff
  • Pay the fees and drive to Repairing Shop
Situation of Suspects:
  • Civ. drive over Spike Boxes
  • get popped wheels
  • getting jailed, to rescue car or run away or dieing while run away or in car
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
Reply
#2

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

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.
Reply
#4

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....
Reply
#5

Wow, very nice one.
Reply
#6

Good work.
Reply
#7

Good job man!
Reply
#8

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

Very good FS! Im gona use this on my server
Reply
#10

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.
Reply
#11

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+).
Reply
#12

Hey I found a bug!

Sucks. But nice FS.

GTA SA:MP - Spike Boxes Bug

SureShot
Reply
#13

Thanks for your report, fixed
*edited startpost*
Reply
#14

The bug wasn't fixed!
Reply
#15

omg this guy.. lol
good job
Reply
#16

Quote:

The bug wasn't fixed!

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

/edit:
Ur right, NOW fixed
Reply
#17

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

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...
Reply
#19

Shit is Awsome
Reply
#20

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
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)