[FilterScript] Tazer/Cuff/Drag system good for RP
#1

Police GM Addon
By JhnzRep

Hello everyone, I have created this little script just for fun. It's not really even a FS, more like a addon to just add to your script.

Functions:

Код:
/tazer - Bring out a SD pistol tazer. When you shoot a player with it, they cannot move for 5 seconds and can be cuffed.
/cuff - You can cuff a player for 10 minutes. After the 10 minutes the cuffs will break.
/drag - You will drag the player, meaning when you move he will be following you.
Credits:
It uses Wups' OnPlayerShootPlayer include.
Gangsta_'s SDpistol tutorial.
JhnzRep - creating this script.
****** - sscanf.
Zeexs - ZCMD

How to install:
You will need to download sscanf(https://sampforum.blast.hk/showthread.php?tid=120356).
ZCMD(https://sampforum.blast.hk/showthread.php?tid=91354).
OnPlayerShootPlayer(https://sampforum.blast.hk/showthread.php?tid=195439&page=38).

After you get all these, you will need to do this right under #include <a_samp>(set the includes):
pawn Код:
#include <sscanf2>
#include <zcmd>
#include <OPSP>
Then the defines:

pawn Код:
#define SCM SendClientMessage
#define GREY 0xAFAFAFAA
#define PURPLE 0xC2A2DAAA
You will also need to add this under #endif
pawn Код:
new BigEar[MAX_PLAYERS],tazetimer[MAX_PLAYERS], pCuffed[MAX_PLAYERS], cufftimer[MAX_PLAYERS], Dragging[MAX_PLAYERS], Dragged[MAX_PLAYERS], draggedtimer[MAX_PLAYERS], pTazed[MAX_PLAYERS], Tazer[MAX_PLAYERS];
Pastebin for everything else:
http://pastebin.com/WffpbiYA

Find Bugs or have Questions?
Post here or PM me.
Thanks.
Reply
#2

The 'draggedtimer' should be related to player IDs and not global. Eg. when someone used successfull /drag the variable 'draggertimer' gets a value assigned (the timer ID). But when someone else uses /drag with success too, the 'draggedtimer' will have another value. This means that that first person can't stop dragging anymore.

p.s.
It's 'Zeex' and not 'Zeexs'
Reply
#3

Not bad.
Reply
#4

Quote:

You will also need to add this under #endif

I don't see any #endif in your post. ^^

Anyway, don't use my include. It's outdated, and sa-mp now has a native public for that.
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
Reply
#5

Quote:
Originally Posted by Kwarde
Посмотреть сообщение
The 'draggedtimer' should be related to player IDs and not global. Eg. when someone used successfull /drag the variable 'draggertimer' gets a value assigned (the timer ID). But when someone else uses /drag with success too, the 'draggedtimer' will have another value. This means that that first person can't stop dragging anymore.

p.s.
It's 'Zeex' and not 'Zeexs'
I set the IDs, thanks .

Quote:
Originally Posted by wups
Посмотреть сообщение
I don't see any #endif in your post. ^^

Anyway, don't use my include. It's outdated, and sa-mp now has a native public for that.
pawn Код:
public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
OnPlayerGiveDamage, is not very good at this version.
Reply
#6

it's hard to put it... if somone can help?

skype : t0rakftw19941

Thanks
Reply
#7

Nice job,keep it up!
Reply
#8

Nice i like this
Reply
#9

if extinguished from the game gives you in jail you off the tazer add - Skype Spase_Ilcev
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)