SA-MP Forums

Go Back   SA-MP Forums > SA-MP Scripting and Plugins > Filterscripts

Reply
 
Thread Tools Display Modes
Old 25/04/2010, 05:32 AM   #1
BLAbla93
Huge Clucker
 
Join Date: Jan 2009
Posts: 213
Reputation: 4
Default [FS] Jail System V1.1 - Uses Zcmd _ MAJOR BUG FIX RE DOWNLOAD

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!!!
BLAbla93 is offline   Reply With Quote
Old 25/04/2010, 07:58 AM   #2
Thrarod
Huge Clucker
 
Join Date: Jan 2010
Posts: 455
Reputation: 0
Default Re: [FS] Jail System V1.0 - Uses Zcmd

Nice cmd!! 10/10
Thrarod is offline   Reply With Quote
Old 25/04/2010, 02:36 PM   #3
BLAbla93
Huge Clucker
 
Join Date: Jan 2009
Posts: 213
Reputation: 4
Default Re: [FS] Jail System V1.0 - Uses Zcmd

thanks
BLAbla93 is offline   Reply With Quote
Old 25/04/2010, 02:49 PM   #4
[WF]Demon
Huge Clucker
 
[WF]Demon's Avatar
 
Join Date: Oct 2009
Posts: 484
Reputation: 3
Default Re: [FS] Jail System V1.0 - Uses Zcmd

Very nice, Mirror
[WF]Demon is offline   Reply With Quote
Old 25/04/2010, 02:53 PM   #5
BLAbla93
Huge Clucker
 
Join Date: Jan 2009
Posts: 213
Reputation: 4
Default Re: [FS] Jail System V1.0 - Uses Zcmd

Quote:
Originally Posted by [DJ
[SF] r ∞ ]
Very nice, Mirror
awesome thanks
BLAbla93 is offline   Reply With Quote
Old 25/04/2010, 03:29 PM   #6
IamNotKoolllll
Big Clucker
 
Join Date: May 2009
Posts: 135
Reputation: 0
Default Re: [FS] Jail System V1.0 - Uses Zcmd

Quote:
Originally Posted by BLAbla93
thanks
love it
IamNotKoolllll is offline   Reply With Quote
Old 25/04/2010, 03:48 PM   #7
BLAbla93
Huge Clucker
 
Join Date: Jan 2009
Posts: 213
Reputation: 4
Default Re: [FS] Jail System V1.0 - Uses Zcmd

lol i knew you would xD
BLAbla93 is offline   Reply With Quote
Old 25/04/2010, 05:08 PM   #8
RyDeR`
High-roller
 
RyDeR`'s Avatar
 
Join Date: Feb 2009
Location: Belgium
Posts: 2,929
Reputation: 700
Default Re: [FS] Jail System V1.0 - Uses Zcmd

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

Sup?
RyDeR` is offline   Reply With Quote
Old 25/04/2010, 07:57 PM   #9
Thrarod
Huge Clucker
 
Join Date: Jan 2010
Posts: 455
Reputation: 0
Default Re: [FS] Jail System V1.0 - Uses Zcmd

Oh! Noticed that new, I said why it didnt work
Thrarod is offline   Reply With Quote
Old 26/04/2010, 04:06 AM   #10
BLAbla93
Huge Clucker
 
Join Date: Jan 2009
Posts: 213
Reputation: 4
Default Re: [FS] Jail System V1.0 - Uses Zcmd

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 >.>
BLAbla93 is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[FilterScript] [FS] Simple base License System (Download Link Added) Oxside Filterscripts 30 19/11/2011 09:40 AM
where can i download an admin system and an login and register system dendudes123 Help Archive 3 19/06/2010 06:13 PM
Major Major Server Problem Klid Help Archive 4 03/11/2009 09:09 AM
[FilterScript] [FS] Jail area and Jail command PinkFloydLover Filterscripts 13 05/08/2009 06:11 AM
I need some major help! BP13 Help Archive 1 12/07/2009 06:29 AM


All times are GMT. The time now is 08:32 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.