Wei Posted April 19, 2012 Posted April 19, 2012 (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 April 19, 2012 by Guest Diet with russian vodka, lose 3 days in one week !
Castillo Posted April 19, 2012 Posted April 19, 2012 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. San Andreas Utopia RPG (SAUR) Owner & Developer. Education is the most powerful weapon which you can use to change the world.
Wei Posted April 19, 2012 Author Posted April 19, 2012 ok... i'll take a look thanks Diet with russian vodka, lose 3 days in one week !
Alpha Posted April 19, 2012 Posted April 19, 2012 Maybe this will help: function findRotation(startPosX, startPosY, endPosX, endPosY) return 360 - (math.deg(math.atan2(endPosX - startPosX, endPosY - startPosY)) % 360) end My Resources: [REL] Support System v1.0.2
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now