Advertisement
Guest User

Untitled

a guest
Nov 3rd, 2020
72
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. forward TpTest(playerid);
  2. public TpTest(playerid)
  3. {
  4. new Float: dx, Float: dy, Float: dz, Float: distance;
  5. GetPlayerPos(playerid, dx, dy, dz);
  6. distance = GetDistanceBetweenPoints(TpTestx[playerid], TpTesty[playerid], TpTestz[playerid],dx,dy,dz);
  7. if(distance > 300)
  8. {
  9. /*new string[128];
  10. format(string,sizeof(string), "AdmWarning: %s(id %d) is suspected to using teleport hack.",PlayerInfo[playerid][pNormalName], playerid);
  11. ABroadCast(COLOR_RED, string, 1);*/
  12. NightBot(playerid, "Cheats (teleport-hack) #2");
  13. }
  14. return 1;
  15. }
  16.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement