SA-MP Forums Archive
Cop System Help - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Cop System Help (/showthread.php?tid=313770)



Cop System Help - RubM - 27.01.2012

Hi All
Me and my friend are making a server. And we need a cop system. We have scripted everything on the server our self, but this one was a little to advanced for us. We had in mind that rcon admins can set cop. A hard command no one can guess, because we dont want other admins to set cops without my permission. The cops should be able to use tazer, arrest, set wanted, police radio and stuff like that.


Re: Cop System Help - henry jiggy - 27.01.2012

First thing, don't give RCON to other admins...

Use an admin level array for checks and make a SetAdminLevel command.

for tazer check for nearest player if no ID is provided and use TogglePlayerControllable on him

Arrest just tele given ID them to jail and do whatever else your script requires

Set wanted you can use GTA's built-in wanted function for levels of 0-6 using SetPlayerWantedLevel

for radio loop through all players checking if they are cop. if they are, send a message, if not, dont.


Re: Cop System Help - RubM - 27.01.2012

Thanks man. Im still learning Pawno so i dont quite understand what you are telling me. If you could tell me the codes it would be awesome. I will learn betther then


Re: Cop System Help - milanosie - 27.01.2012

Quote:
Originally Posted by RubM
Посмотреть сообщение
Thanks man. Im still learning Pawno so i dont quite understand what you are telling me. If you could tell me the codes it would be awesome. I will learn betther then
Telling codes will learn you nothing, I suggest not to start with something like this(altough its not hard)

Go read wiki.sa-mp.com instead


Re: Cop System Help - RubM - 27.01.2012

Thanks. I have made the basics and are ready for players soon. Only 1 thing left and thats cop system.