Cop System Help
#1

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.
Reply
#2

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.
Reply
#3

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
Reply
#4

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
Reply
#5

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


Forum Jump:


Users browsing this thread: 1 Guest(s)