SHARE
TWEET

Untitled

Mr_Djole Dec 3rd, 2019 78 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. YCMD:test(playerid, params[], help) {
  2.     new Float:pos[4];
  3.     GetPlayerPos(playerid, pos[0], pos[1], pos[2]);
  4.     GetPlayerFacingAngle(playerid, pos[3]);
  5.  
  6.     pos[3] -= 180.0;
  7.     pos[0] += (2.5 * floatsin(-pos[3], degrees));
  8.     pos[1] += (2.5 * floatcos(-pos[3], degrees));
  9.  
  10.     SetPlayerPos(playerid, pos[0], pos[1], pos[2]);
  11.     SetPlayerFacingAngle(playerid, pos[3]);
  12.     SetCameraBehindPlayer(playerid);
  13.     return 1;
  14. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top