[Include] Cade System
#1

Cade System by McGuiness

What is the Cade System?
The cade system is three selections of barricades, cones, barriers and spikes. This is an include and has custom stocks created to save space on the script but also to help any new scripters with how to code a system.

How does it work?
There is a example script in the rar file to help people out on how they can create a cone, barrier or spike strip. This is a very simple include but like I said it will help new scripters figure out how things work.

What are the stocks?
These are the following stocks included in the include:
pawn Код:
CreateBarrier(Float:x, Float:y, Float:z, Float:Angel) // This creates a barrier at a position
DeleteAllBarrier() // Deletes all barriers that where created
DeleteClosestBarrier(playerid) // Deletes closest barrier next to you
CreateCone(Float:x, Float:y, Float:z, Float:Angel) // This creates a cone at a position
DeleteAllCone() // Deletes all cones that where created
DeleteClosestCone(playerid) // Deletes closest cone next to you
CreateStrip(Float:x, Float:y, Float:z, Float:Angel) // This creates a spike at a position
DeleteAllStrip() // Deletes all spikes that where created
DeleteClosestStrip(playerid) // Deletes closest spike next to you
Reply
#2

I almost forgot to add, and only just noticed what I missed but the objects in this are for a more realistic feature as in some RP scripts you will see huge barricades that wouldn't even fit in a vehicle fully!
Reply
#3

You should add:
- Compatibillity for dynamic objects via a #define system
(example):
pawn Код:
#if defined USE_STREAMER_PLUGIN
    #define CreateObjectEx CreateDynamicObject
#else
    #define CreateObjectEx CreateObject
#endif
- You should put it on pastebin.
Reply
#4

I may consider that but this is just a include for people who are really new to scripting
Reply
#5

pastebin please.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)