Creating Warrant System
#1

Can someone give me a quick tutorial how to create warrant system. I don't use MYSQL.
For example:
/su 0 Illegal Possession of Firearms
You will have active warrant "Illegal Possession of Firearms"
And when a police issue another warrant it will add to your warrants like.
/su 0 Possession of Illegal Narcotics

And when a police check your warrants, all active warrants of yours will be shown.
/checkactivewarrants 0

John Smith
Illegal Possession of Firearms
Possession of Illegal Narcotics

And when you get arrested successfully, your active warrants will be removed but it will be shown on your background check as your past crimes.
Reply
#2

Hi, create a MySQL table, structure it - example;

warrantId - warrantActive - warrantIssuer - warrantName - warrantReason

As soon as you add somebody to the suspect list, insert a query and set it to active (this basically means that the warrant is still active).

Once the suspect gets arrested, loop through all of his warrants and set the active to null, 0 (basically means that the warrant isn't active anymore, but is still in the database as history, so you can grab the data anytime you want, mdc for example).

Pretty simple really, if you're still having trouble, please PM me and link this topic.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)