SA-MP Forums Archive
[FilterScript] [FS] Jail System V1.1 - Uses Zcmd _ MAJOR BUG FIX RE DOWNLOAD - 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] Jail System V1.1 - Uses Zcmd _ MAJOR BUG FIX RE DOWNLOAD (/showthread.php?tid=143977)

Pages: 1 2


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

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!!!


Re: [FS] Jail System V1.0 - Uses Zcmd - Thrarod - 25.04.2010

Nice cmd!! 10/10


Re: [FS] Jail System V1.0 - Uses Zcmd - BLAbla93 - 25.04.2010

thanks


Re: [FS] Jail System V1.0 - Uses Zcmd - [WF]Demon - 25.04.2010

Very nice, Mirror


Re: [FS] Jail System V1.0 - Uses Zcmd - BLAbla93 - 25.04.2010

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


Re: [FS] Jail System V1.0 - Uses Zcmd - IamNotKoolllll - 25.04.2010

Quote:
Originally Posted by BLAbla93
thanks
love it


Re: [FS] Jail System V1.0 - Uses Zcmd - BLAbla93 - 25.04.2010

lol i knew you would xD


Re: [FS] Jail System V1.0 - Uses Zcmd - RyDeR` - 25.04.2010

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.


Re: [FS] Jail System V1.0 - Uses Zcmd - Thrarod - 25.04.2010

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


Re: [FS] Jail System V1.0 - Uses Zcmd - BLAbla93 - 26.04.2010

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 >.>


Re: [FS] Jail System V1.0 - Uses Zcmd - On_Top_Non_Stop - 28.04.2010

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)



Re: [FS] Jail System V1.0 - Uses Zcmd - Torran - 28.04.2010

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:
{
}
}



Re: [FS] Jail System V1.0 - Uses Zcmd - Scenario - 28.04.2010

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


Re: [FS] Jail System V1.0 - Uses Zcmd - ViruZZzZ_ChiLLL - 28.04.2010

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


Re: [FS] Jail System V1.0 - Uses Zcmd - RyDeR` - 28.04.2010

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


Re: [FS] Jail System V1.0 - Uses Zcmd - BLAbla93 - 28.04.2010

lol thx ontop i like that way much more


Re: [FS] Jail System V1.0 - Uses Zcmd - JPs_ - 29.04.2010

nice


Re: [FS] Jail System V1.0 - Uses Zcmd _ MAJOR BUG FIX RE DOWNLOAD - BLAbla93 - 21.05.2010

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


Re: [FS] Jail System V1.1 - Uses Zcmd _ MAJOR BUG FIX RE DOWNLOAD - panther74 - 21.05.2010

Thank you


Re: [FS] Jail System V1.1 - Uses Zcmd _ MAJOR BUG FIX RE DOWNLOAD - BLAbla93 - 22.05.2010

Quote:
Originally Posted by panther74
Thank you
your welcome