Advertisement
SmithOficial

Untitled

Nov 15th, 2014
440
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.35 KB | None | 0 0
  1. #include <a_samp> //Visite www.dominiosamp.net
  2.  
  3. // By : Smith_Oficial
  4.  
  5. #define DIALOG_ChecarHack 3000
  6.  
  7. public OnPlayerSpawn(playerid)
  8. {
  9. SetCameraBehindPlayer(playerid);
  10. SetTimerEx("ChecarHack", 4 * 1000, 0, "i", playerid);
  11. GameTextForPlayer(playerid, "~w~Ant-Cheater-Checando", 3000, 3);
  12. TogglePlayerControllable(playerid, 0);
  13. return 1;
  14. }
  15. forward ChecarHack(playerid);
  16. public ChecarHack(playerid)
  17. {
  18. new Float:x, Float:y, Float:z;
  19. GetPlayerCameraFrontVector(playerid, x, y, z);
  20. #pragma unused x
  21. #pragma unused y
  22. if(z < -0.8)
  23. {
  24. TogglePlayerControllable(playerid, 1);
  25. new string[128];
  26. new DNSME[MAX_PLAYER_NAME];GetPlayerName(playerid, DNSME, sizeof DNSME);
  27. format(string, sizeof string, "%s se conectou com Hacker e foi kickado.", DNSME);
  28. SendClientMessageToAll(0xFF0000FF, string);
  29. new String[1000];
  30. format(String, sizeof(String), "{FF0000}Você logou com Hacker.\n{FF0000}# {FFFFFF} Anti-Hacker {FF0000}\n{FF0000}Informaçoes.");
  31. ShowPlayerDialog(playerid, DIALOG_ChecarHack, DIALOG_STYLE_MSGBOX, "{FF0000}# {FFFFFF}NOME DO SERVE", String, "Ok", "Sair");
  32. Kick(playerid);
  33. }
  34. else
  35. {
  36. TogglePlayerControllable(playerid, 1), SendClientMessage(playerid, -1, "Obrigado Por Escolher O Servidor");
  37. }
  38. return 1;
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement