Advertisement
Guest User

Untitled

a guest
Jul 22nd, 2018
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.56 KB | None | 0 0
  1. #include <sdktools>
  2.  
  3. float g_fAngles[MAXPLAYERS+1];
  4.  
  5. public Action OnPlayerRunCmd(int client, int &buttons, int &impulse, float vel[3], float angles[3], int &weapon, int &subtype, int &cmdnum, int &tickcount, int &seed, int mouse[2])
  6. {
  7.     if(IsPlayerAlive(client) && !IsFakeClient(client) && (buttons & IN_LEFT) > 0 || (buttons & IN_RIGHT) > 0 )
  8.     {
  9.         angles[1] = g_fAngles[client];
  10.         TeleportEntity(client, NULL_VECTOR, angles, NULL_VECTOR);
  11.         return Plugin_Changed;
  12.     }
  13.     g_fAngles[client] = angles[1];
  14.     return Plugin_Continue;
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement