Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //---------------------------------------------------------------------------
- //- |||||||| ||||||| |||||| ||||||| |||||| |||||| |||||| |||||| -
- //- || || || || || || || || || || || || || -
- //- || |||| ||||||| |||||| || || |||| |||||| |||| |||||| -
- //- || || || || || ||| || || || || ||| || || ||| -
- //- |||||||| || || || ||| ||||||| |||||| || ||| |||||| || ||| -
- //---------------------------------------------------------------------------
- // SCRIPT BY GARDERER "Team fight-International"
- //------------------------------------------------------------------G@R------
- //Includes
- #include <a_samp>
- //FILTERSCRIPT
- #define FILTERSCRIPT
- #if defined FILTERSCRIPT
- //COLOR_ORANGE
- #define COLOR_ORANGE 0xFF9900AA
- //Anti-Bot
- new antibot22[MAX_PLAYERS];
- forward antibot2(playerid);
- new pname[250],string[256];
- public OnFilterScriptInit()
- {
- print("\n-----------------------------------------------------------------------");
- print(" [FS] Anti bot2 Team Fight-international [Fi] By garderer 1.0 Charge.");
- print("-----------------------------------------------------------------------\n");
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\n-----------------------------------------------------------------------");
- print(" [FS] Anti bot2 Team Fight-international [Fi] By garderer 1.0 Retire.");
- print("-----------------------------------------------------------------------\n");
- return 1;
- }
- #else
- main()
- {
- }
- #endif
- public OnGameModeInit()
- {
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerDisconnect(playerid)
- {
- KillTimer(antibot22[playerid]);
- }
- public OnPlayerConnect(playerid){
- antibot22[playerid] = SetTimerEx("antibot2",5000,1,"%d",playerid);
- return 1;
- }
- public antibot2(playerid)
- {
- if(GetPlayerPing(playerid) == 0)
- {
- GetPlayerName(playerid, pname, sizeof(pname));
- SendAdminMessage(COLOR_ORANGE,"( ! ) [Fi] Anti-Bot2 (msg[admin]): Bot d�tect� et banni !.");
- format(string, sizeof(string), "( ! ) [Fi] Anti-Bot2 : D�tection d'un bot nom� %s (Banni).", pname);
- SendClientMessageToAll(COLOR_ORANGE,string);
- SendClientMessage(playerid, COLOR_ORANGE,"( ! ) Vous avez �tait banni car vous �tes consid�r� comme un bot.");
- print(") [Fi] Anti-Bot2: A banni un bot !");
- KillTimer(antibot22[playerid]);
- Ban(playerid);
- }
- }
- //----[Fi]----------------------------------------------------------------------
- // SendAdminMessage
- //-----------------------------------------------------------------------G@R----
- SendAdminMessage(color, text[]) {
- for(new i = 0; i < MAX_PLAYERS; i ++) {
- if(IsPlayerConnected(i)) {
- if (IsPlayerAdmin(i)) {
- SendClientMessage(i, color, text);
- }}}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement