Quote:
Originally Posted by Snowman12
SafeSetPlayerPos is a function mostly found in anticheats; NOT what you need, you will be needing a function which you used above SetPlayerVelocity. Set it so the player moves in the direction you want etc.. if you want it on a key do
pawn Код:
/* OnPlayerKeyStateChange */ if(newkeys == KEY_FIRE) { /* blahhh */ }
How ever be sure to check if the player isn't sending any armed data other wise they will not be able to use weapons.. Another thing don't use this unless clearing you Anticheat first - if you have - Otherwise your player will end up banned :P. Alright;
Best of luck,
-Snowman
|
I appreciate the help. But it isn't doing me any good. SetPlayerVelocity is a bit more complicated than I originally thought. You can't just put in an X Y Z coordinate and the player will be pushed in that direction. It needs an X offset and a Y offset sort of thing. I can recall seeing the code used somewhere to calculate the proper X offset and Y offset from a X and Y coordinate.
So my problem is not a lack of scripting knowledge. It's just that I have no idea what the math formula is.