[FilterScript] [FS] Jail System V1.1 - Uses Zcmd _ MAJOR BUG FIX RE DOWNLOAD
#1

Police Officer/Admin Jail System! V1.0
This [FS] was created by: [T_S]DeStunter A.K.A Blabla93

Rules To follow using my filterscript!

1) Do not take credit for my work!
2) Do not take edit this filter script and re-release it
3) Do not re-release this
4) Give me credit for my filter script

if you can not follow these 4 simple rules then do no read any further and leave!

About this FS:

the jail system has several commands being /ar [id] (/arrest) - /tk [id] (ticket) for police officers and /jail [id][time in minutes][reason]
you can edit the line that check to make sure your a police officer in the filter scripts source code to fit your current game mode if you have a officer job/faction.

Code:
new pskin = GetPlayerSkin(playerid);
	if(pskin == 265 || pskin == 266 || pskin == 267 || pskin == 280 || pskin == 281 || pskin == 284 || pskin == 285 || pskin == 286 || pskin == 287 || pskin == 288)
these are all the police officer skin ids, if you are not a police officer it will return this error

Code:
return SendClientMessage(playerid, 0xFF0000AA, "Error: You are not a police officer!");
to use the administrator jail command you must be logged into rcon admin to use this or else it will return 0 !
you can change this by changing the simple
Code:
if (IsPlayerAdmin(playerid))
to your own.

for /ar (/arrest) and /tk (/ticket) you must be near the player or else it will not be able to arrest or ticket the suspect!

when you arrest a suspect for every wanted level he has will be how long he will stay in jail and his wanted level will be multiplied by 1000 so every wanted level = 1k, so if you arrest a wanted player that has a level 6 wanted level the officer will make 6k and the criminal will be fined 6k.

tickets are worth 1k


Please post any bugs/grammar issues in the script so i can fix them immediately as we can not have a flaw in this system


Credits:
[T_S]DeStunter A.K.A Blabla93 - coding the whole FS
Zeex for creating zcmd
On_Top2k8 - finding and correcting a bug!

Downloads:
Contents include zcmd and jail system filterscript


.Rar Download

Click Here


.Zip Download

Click Here


Mirrors:

None - Old one was bugged version!


Mirrors are welcome!



EDIT 1:

forgot to add once your time in jail is up you will re spawn to your game modes spawn!

EDIT 2:

i noticed i forgot to add that you can gain a wanted level by killing other players =p

i typed this up last night at the middle of the night lol.

EDIT 3:

Major bug that was found have not had time to fix it. I fixed it and have updated download links! RE DOWNLOAD!!!
Reply
#2

Nice cmd!! 10/10
Reply
#3

thanks
Reply
#4

Very nice, Mirror
Reply
#5

Quote:
Originally Posted by [DJ
[SF]Зурэ Яииr ∞™ ]
Very nice, Mirror
awesome thanks
Reply
#6

Quote:
Originally Posted by BLAbla93
thanks
love it
Reply
#7

lol i knew you would xD
Reply
#8

Code:
if(GetPlayerSkin(playerid) == 265 || 266 || 267 || 280 || 281 || 284 || 285 || 286 || 287 || 288)
Won't work.
You should use GetPlayerSkin(playerid) for each number.
Or more simple put the ID's under a variable and use a loop.
Reply
#9

Oh! Noticed that new, I said why it didnt work
Reply
#10

Quote:
Originally Posted by » RyDeR «
Code:
if(GetPlayerSkin(playerid) == 265 || 266 || 267 || 280 || 281 || 284 || 285 || 286 || 287 || 288)
Won't work.
You should use GetPlayerSkin(playerid) for each number.
Or more simple put the ID's under a variable and use a loop.
ryder that works >.>

i have already tested it like this!

why not go try it yourself

if i did 265 | 266 then you need both if i do 265 || 266 then you can be either 265 or 266 >.>
Reply
#11

Quote:
Originally Posted by [T_S
DeStunter ]
Quote:
Originally Posted by » RyDeR «
Код:
if(GetPlayerSkin(playerid) == 265 || 266 || 267 || 280 || 281 || 284 || 285 || 286 || 287 || 288)
Won't work.
You should use GetPlayerSkin(playerid) for each number.
Or more simple put the ID's under a variable and use a loop.
ryder that works >.>

i have already tested it like this!

why not go try it yourself

if i did 265 | 266 then you need both if i do 265 || 266 then you can be either 265 or 266 >.>
It won't work

It has to be something like this..
pawn Код:
new skin = GetPlayerSkin(playerid);
if(skin == 265 || skin == 266 || skin == 267 || skin == 280 || skin == 281 || skin == 284 || skin == 285 || skin == 286 || skin == 287 || skin == 288)
Reply
#12

pawn Код:
if(GetPlayerSkin(playerid) == 265 || 266 || 267 || 280 || 281 || 284 || 285 || 286 || 287 || 288)
Not gonna work, You can use something like this:

pawn Код:
switch(GetPlayerSkin(playerid))
{
case 265, 266, 267, 280, 281, 284, 285, 286, 287, 288:
{
}
}
Reply
#13

Nice to see that someone has taken an interest in using ZCMD.
Reply
#14

Nice FS man!! Useful for CnR's server
________
AMC AND JEEP TRANSMISSIONS HISTORY
Reply
#15

Or: >.>
pawn Код:
new // At the top of ur script.
    Skins[] =
    {
        265, 266, 267,
        280, 281, 284,
        285, 286, 287,
        288
    }
;
pawn Код:
for(new s; s != sizeof(Skins); s++)
{
    if(GetPlayerSkin(playerid) == s)
    {
        // Ur code
    }
}
But the easiest way I think is that Joe Torran C gaves..

Regards
Reply
#16

lol thx ontop i like that way much more
Reply
#17

nice
Reply
#18

Major bug that was found have not had time to fix it. I fixed it and have updated download links! RE DOWNLOAD!!!

Downloads:
Contents include zcmd and jail system filterscript

.Rar Download

Click Here


.Zip Download

Click Here
Reply
#19

Thank you
Reply
#20

Quote:
Originally Posted by panther74
Thank you
your welcome
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)