SA-MP Forums Archive
[GameMode] Police Department Training - 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: Gamemode Scripts (https://sampforum.blast.hk/forumdisplay.php?fid=71)
+--- Thread: [GameMode] Police Department Training (/showthread.php?tid=420622)



Police Department Training - EliteApple - 05.03.2013

Hey everyone. I began working on this script a few weeks ago and discontinued it now as the server it was far wind up removing me from their 'police department' for a stupid reason.

There's not alot, only 1007 lines. But you can actually do alot with this as it has a few features that are useful and you can actually go further with the script.

Features:
Account System
The account system is very simple, you'll have to be a level 1 administrator to be able to /createaccount for someone. If the username you try to use to create an account with is already in use, it will not let you over write the user, and it'll say 'ERROR'.

After an account is created, the account's password MUST be changed afterwards as the password is the username.
EX: Username: Apple
Password: Apple

It'll also save in scriptfiles under account.log when an admin creates an account, it'll also show their IP address, useful for server owners incase something goes wrong.

Administration:
There's only two admin commands, /makeadmin and /createaccount. To use /makeadmin, you must be logged in as a rcon admin.

/admins command aswell, every 1-5 of the admin rank is considered a moderator, 6-1337 is considered a regular admin, 1338 is hidden.

Join Messages:
Self explanatory, when someone joins, gets kicked, or leaves, it tells everyone.

Basic Stuff:
You'll have chats, when you talk like a normal chat, it'll come up as Apple says: blah blah blah. Like a roleplaying gamemode almost. You must be logged in to type any command.

/breach - Will teleport you to set of house/business interiors, there's only 9 I believe. You can add more, very easy to do.

/enter - enter an interior.

/exit - exit an interior

/duty - gives you a blue color, firearms. for cops.

/criminal - gives you a white color, firearms, for criminals.

/swat - gives you the SWAT skin, 200 armour, 100hp, firearms.

/kill - self explanatory.

BUGS/STUFF I DIDN'T FINISH OR DO:

The chat commands are bugged, easy to fix if you know what you're doing. (/o, /b, /s).
I did NOT save the kills/deaths yet, and I wont continue with the script, so figure it out yourself.
I did not save the IPs yet aswell, easy to do.
I was going to make it where you click a player's name in tab, that'll show their deaths, kills, ratio of deaths and kills, country they're from, and there rank.
I did not do a ranking system either, easy to do, figure it out.
I was going to add the taser systems with the SDPistols, ect, so if you wanna do that, do it.
I never added /siren or /siren2, there is a few filterscripts around though on the forums some where with sirens.
This script was mainly for driving, shootouts, breaching houses, ect.



Download:
http://pastebin.com/s9BaEq8j


CREATE A FILE IN YOUR SCRIPTFILES CALLED USERS, OR ELSE YOUR ACCOUNTS WILL NOT SAVE.


I'm sorry for not indenting most of my script, when I first started scripting that's how I did it, get over it. I'm sorry if you're not happy with everything.



Re: Police Department Training - Broker - 05.03.2013

Screen Shot ?


Re : Police Department Training - thegreathom - 05.03.2013

#First_comments

I'll try this scripts, you will have some feedback later :'3 and thanks you for realase it.
p.s : any screenies?


Re: Police Department Training - EliteApple - 06.03.2013




Re: Police Department Training - iFear - 06.03.2013

Looks Nice.
Will try it. btw. 1+ Rep


Re: Police Department Training - SmithyComp - 06.03.2013

So basically you've stole the /admins command from NGG?

Also, why would you script without indenting?


Re: Police Department Training - EliteApple - 06.03.2013

NGG? Nothing is stolen. I'm not sure where you're getting that from, but I took the /admins command from one of my old scripts and changed it, as only level 1 & 2 use to be a moderator rank, i changed it to 1-5.


If you would PAY ATTENTION, and read the topic, I said why I don't indent. The first script I started messing with was a penls script, heavy modified to a roleplay script, which wasn't indented, and that's how that began.


Re: Police Department Training - SmithyComp - 06.03.2013

Meh, I don't see how it's a "Police Training" script?


Re: Police Department Training - EliteApple - 06.03.2013

It was mostly made for the SWAT team for the community I was in. the interiors at /breach was interiors we used to train. I had alot more to do to this script but then yeah, stuff happened.


Re: Police Department Training - Yves - 06.03.2013

tested good job ElitApple Why dont yea keep working on it?? it may turn out good