Jump to content

police help


Wei

Recommended Posts

Posted (edited)

So I have the police system that i've maded... But i want to make to player (wanted) will folow the player(police man)?

I know how to make col and stuff but I don't know how to take player control and will follow the police man !

CODE:

removed 

Edited by Guest
Posted

You'll need to make it client side as well, in the MTA community there's "j-jobs", it has the ped-follow-cop thing, you could look on how it's done.

Posted

Maybe this will help:

function findRotation(startPosX, startPosY, endPosX, endPosY) 
    return 360 - (math.deg(math.atan2(endPosX - startPosX, endPosY - startPosY)) % 360) 
end 

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...