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 con[MAX_PLAYERS];
- forward va1(playerid);
- forward va2(playerid);
- new va3;
- public OnFilterScriptInit()
- {
- print("\n-----------------------------------------------------------------------");
- print(" [FS] Anti Flood Team Fight-international [Fi] By garderer 3.1 Charge.");
- print("-----------------------------------------------------------------------\n");
- va3 = SetTimer("va1",4000,1);
- SetTimer("va4",1000,0);
- return 1;
- }
- public OnFilterScriptExit()
- {
- print("\n-----------------------------------------------------------------------");
- print(" [FS] Anti Flood Team Fight-international [Fi] By garderer 3.1 Retire.");
- print("-----------------------------------------------------------------------\n");
- SetTimer("va2",1000,0);
- return 1;
- }
- #else
- main()
- {
- }
- #endif
- public OnGameModeInit()
- {
- return 1;
- }
- public OnGameModeExit()
- {
- SetTimer("va2",1000,0);
- return 1;
- }
- public OnPlayerConnect(playerid){
- {
- con[playerid]=con[playerid]+1;
- if(con[playerid] == 10){
- SendAdminMessage(COLOR_ORANGE,"( ! ) [Fi] Anti-bot (msg[admin]): L'attaque de bot est banni par l'anti-flood de la team [Fi].");
- SendClientMessage(playerid,COLOR_ORANGE,"( ! ) Anti-flood Bot [Fi] :");
- SendClientMessage(playerid,COLOR_ORANGE,"( ! ) Vous avez �tes banni car vous �tes consid�r� comme bot par l'anti flood.");
- SendClientMessage(playerid,COLOR_ORANGE,"( ! ) Si erreur contacter un admin.");
- print("[FS] Anti Flood Team Fight-international .A banni l attaque de bot.");
- Ban(playerid);
- SendClientMessageToAll(COLOR_ORANGE,"( ! ) [Fi] Anti-bot: L'attaque de bot a �tait banni par l'anti flood de la team Fight-International.");
- }
- }
- return 1;
- }
- public va1(playerid)
- {
- con[playerid]=0;
- }
- public va2(playerid)
- {
- KillTimer(va3);
- con[playerid]=0;
- }
- //----[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