Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <mobile> // e obrigatorio o uso da include mobile e pawnraknet
- //DEFINES
- #define DIALOG_LOCKON 3773 //Aqui esta definido o id da dialog
- #define FILTERSCRIPT
- //
- #if defined FILTERSCRIPT
- public OnFilterScriptInit()
- {
- print("\n--------------------------------------");
- print(" Anti-LockOn BY: zGabriel");
- print("--------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- return 1;
- }
- #else
- #endif
- public OnPlayerSpawn(playerid) //Public chamada sempre que o player spawna
- {
- if(PlayerMobileInfo[playerid][isHaveAutoaim] == true) //Aqui verificamos se o player esta com a funcao 'Mira Automatica' habilitada
- {
- ShowPlayerDialog(playerid, DIALOG_LOCKON, DIALOG_STYLE_MSGBOX, "Anti-LockOn", "{FF0000}Voce foi kickado automaticamente pois esta usando lock on!\n{FFFFFF}Desative a opcao {FF0000}'Mira automatica' {FFFFFF}em seu samp launcher!", "OK",""); //Aqui criamos a dialog, voce pode alterar os textos e cores
- KickDelay(playerid); //Chamamos nossa stock KickDelay para dar tempo da mensagem ser mostrada ao player
- }
- return 1;
- }
- stock KickDelay(playerid)
- {
- SetTimerEx("KickMe", 1000, false, "d", playerid); //Criamos um timer de 1 segundo, apos isso o player sera kickado
- return 1;
- }
- forward KickMe(playerid);
- public KickMe(playerid)
- {
- return Kick(playerid); //Retornamos Kick para que o player seja kickado, esta funcao e padrao do samp
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement