Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp> //Visite www.dominiosamp.net
- // By : Smith_Oficial
- #define DIALOG_ChecarHack 3000
- public OnPlayerSpawn(playerid)
- {
- SetCameraBehindPlayer(playerid);
- SetTimerEx("ChecarHack", 4 * 1000, 0, "i", playerid);
- GameTextForPlayer(playerid, "~w~Ant-Cheater-Checando", 3000, 3);
- TogglePlayerControllable(playerid, 0);
- return 1;
- }
- forward ChecarHack(playerid);
- public ChecarHack(playerid)
- {
- new Float:x, Float:y, Float:z;
- GetPlayerCameraFrontVector(playerid, x, y, z);
- #pragma unused x
- #pragma unused y
- if(z < -0.8)
- {
- TogglePlayerControllable(playerid, 1);
- new string[128];
- new DNSME[MAX_PLAYER_NAME];GetPlayerName(playerid, DNSME, sizeof DNSME);
- format(string, sizeof string, "%s se conectou com Hacker e foi kickado.", DNSME);
- SendClientMessageToAll(0xFF0000FF, string);
- new String[1000];
- format(String, sizeof(String), "{FF0000}Você logou com Hacker.\n{FF0000}# {FFFFFF} Anti-Hacker {FF0000}\n{FF0000}Informaçoes.");
- ShowPlayerDialog(playerid, DIALOG_ChecarHack, DIALOG_STYLE_MSGBOX, "{FF0000}# {FFFFFF}NOME DO SERVE", String, "Ok", "Sair");
- Kick(playerid);
- }
- else
- {
- TogglePlayerControllable(playerid, 1), SendClientMessage(playerid, -1, "Obrigado Por Escolher O Servidor");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement