Spawning vehicles and weapons detection
#1

Hi, I need to know how to stop people from spawning weapons and vehicles who are not admins. I'm not sure on how to go about doing it some can anyone help?
Reply
#2

Like Command or how?
Reply
#3

No, like something automatic that detects it
Reply
#4

what is your command that spawns the cars and weapons?
Reply
#5

Its for hackers...
Reply
#6

Quote:
Originally Posted by cloudysky
Посмотреть сообщение
Its for hackers...
Do you mean anti cheat or? If yes use JunkBuster.
Reply
#7

Make an array like
Код:
ServerCars[MAX_VEHICLES]
then make a timer that loops at a period of time that you want, could be 30 seconds or an hour, you choose.
then when an admin types a legitimate command to make a car it inserts a one into the array at a certain spot like as follows.
Код:
ServerCars[54] = 1; //54 is for the vehicle id, just a random number
then the function that your timer calls does a check with every vehicle id against the array, and if there is a vehicle on say id 76, but the array has id 76 as 0 it will delete the car. just a quick guess but i think it may work.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)