Advertisement
Guest User

Untitled

a guest
Jun 20th, 2019
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.08 KB | None | 0 0
  1. if (pos[0] == 0 && pos[1] == 0)
  2. {
  3. PrintToChatAll("\x01\x0B \x04[HvH] %s tried to use Teleport.", clientname);
  4. ForcePlayerSuicide(i);
  5. }
  6.  
  7. if (view_pos[0] > 90 || view_pos[0] < -90)
  8. {
  9. PrintToChatAll("\x01\x0B \x04[HvH] %s uses invalid angles (X: %f, Y: %f, Z: %f)", clientname, view_pos[0], view_pos[1], view_pos[2]);
  10. ForcePlayerSuicide(i);
  11. }
  12.  
  13. if (view_pos[1] > 180 || view_pos[1] < -180)
  14. {
  15. PrintToChatAll("\x01\x0B \x04[HvH] %s uses invalid angles (X: %f, Y: %f, Z: %f)", clientname, view_pos[0], view_pos[1], view_pos[2]);
  16. ForcePlayerSuicide(i);
  17. }
  18.  
  19. if (view_pos[2] > 360 || view_pos[2] < -360)
  20. {
  21. PrintToChatAll("\x01\x0B \x04[HvH] %s uses invalid angles (X: %f, Y: %f, Z: %f)", clientname, view_pos[0], view_pos[1], view_pos[2]);
  22. ForcePlayerSuicide(i);
  23. }
  24. }
  25. }
  26. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement