Please read the full topic before posting other possibilities of bugs/abuses or posting your own opinion.
Nowadays, RPing in SAES is becoming rarer and rarer, even when we find someone to RP with (us cops), it's impossible to RP with him well because either a retarded trainee comes and arrests then ruins the RP or a squad member does that (don't want to include names). So, I'm suggestion the following script to avoid such these things.
So, the script will make the RPer (as a cop) to use a command (let's take an example of (/release), of /release [criminal name] and the criminal will be under arrest protection from all cops except that cop. But there are some exception and rules for this, the 3d distance between the cop using the command and the criminal should be less than 20m (20m is enough to make a whole RP and to avoid such abusing of the script. Also, this script should be restricted for PCs and official squad members. Also the suspect should not be inside any type of vehicle but the cop can be so. But there are such ways to abuse or break the script.
- Cop will be abusing with his friend while driving with him
A cop either of PC or a squad member might abuse this script while chilling with his friend, he could abuse the script buy making his criminal friend under arrest before getting into the vehicle then he gets into the vehicle and the cop has the criminal not arrested and he avoids other cops getting him caught, so the protection should be canceled onPlayerVehicleEnter (the criminal)
- Cop can put someone underprotection while he's already
That's why the script should not be used as A COMMAND but as a panel.
((I'm going to add another part of bugs/abuses after explaining the panel))
Explaining the script (Main subject #2):
It looks quite simple for us, but it's a bit tiring at scripting it. The panel will have a gui list of the the criminal teams such as civilians and criminals, CLO, DDT, CC (cc are criminals >.>), and other criminal group teams, and make only wanted ones show up, with their name and wanted level, class. BUT cops groups such as DE and HLS and SAI should not be shown up, I'll tell you why in the next bugs/abuse possibilities' next part. And add a button to make that player under arrest-protection. (Remember, the player should not be in any vehicle and the protection will be removed when he starts to enter the vehicle (A.K.A onPlayerVehicleEnterStart i think so)
- Criminal may trick the cop
How? The cop may put the criminal under protection. Let's say there are 3 cops and 2 criminals RPing with them, so one of the cops will be putting each of the 2 criminals under arrest protection, as I said above,
the criminal will be under arrest protection from all cops except that cop.
So, the 2 criminals may just pick up a weapon and kill that cop first and the others cant arrest him already. So first, When the criminal moves away of 20m the protection will be directly revoked, also, When the criminals fire either with his fist or any other weapon, and the important stuff into here, There should be another gui, in the panel of the cop that made the 2 criminals under protection, another gui where he can see cops in such teams even trainees to allow them to arrest him before making the protection, so he should even choose his partners before making the protection, otherwise he can't add them later, to avoid such bugs in the panel.
- The cop may abuse the panel to remove DEs/HLSs and other arrest protection
A cop may put a DE member underprotection then removes the protection, and the script that protects him already might not force his to be underprotection all time after the bug abuse, and the DE member might get wanted after spawning without removing his wanted level and gets arrested. That's why I said you should put the ipairs table for the wanted guys of criminal/civilian groups/classes/teams.
- A criminal might be already in arrest protection and another cop makes him underprotection
A cop may be RPing with a criminal and put him underprotection, then his partner thinks that the RPer didn't put the criminal underprotection or an abuser does just put the criminal under arrest protection protection for the second time and bug the criminal, so if the status of the criminal shows that he's protected, a text shows up in the notification bar that the criminal is already under protection and cancels the second request of protection. There should be a "setElementData" to "arrest-protected" or you choose it, and the criminals not under protection has "not-protected". Making everything with setElementData will make u able to add the arrest protection easier and make the gui easier.
((I'll think about more bug abuses/glitches and add it later.))