Loading community

Back to L E V I N's profile
L E V I N

Posts by L E V I N

971 posts

  1. #361
  2. #362
  3. #363
  4. #364
  5. #365
    Reply in Announcements & Updates

    Așa cum Toamna se numără „bobocii”, Noi vom alege o Miss și un Mister  ECILA.

     

    Regulile vor fi puțin „diferite” aici, prin faptul că, participarea este deschisă oricui, fără a se ține cont de vârstă!

     

    Cine dorește să participe, trebuie să dea un reply cu următorul Model, completat! (poza este obligatorie, fiind o poză reală !)

     

    MODEL:

    1. Nume(real) - 

    2. Vârsta - 

    3. Particip pentru Miss/Mister - 

    4. Poză(doar cu tine) - 

    5. Un număr de la 1 la 100 - 

     

     

    Alegerea o voi face pe site-ul „random.org” . VIDEO( poate live =) )

    Cei care vor câștiga, vor avea - Award, member title customizat, grad premium(sau unul personalizat) și probabil că și +rep , iar dacă dorește un avatar de alte dimensiuni, sau semnătura/pagina „About ME” , personalizate, să-mi dea PM .

    Voi da un răspuns când se vor strânge minim 15 persoane. Dacă am dat T.C, dar mai vrea cineva să participe, să-mi dea un PM, și voi lăsa topicul deschis.

     

     

     

     

    Numere deja alese :

     

    21 - mister

    69 - mister

    13 - mister

    4 - mister

    20 - mister

    17 - mister

    7 - mister

    79 - mister

    5 - mister

    10 - mister

    9 - mister

    19 - mister

    80 - mister

    35 - mister

    30 - mister

    12 - mister

     

     

     

    28 - miss

    77 - miss

    81 - miss

    1 - miss

     

     

     

     

    ------------------------------------------------------------------------------------------

     

    Pe data de 08.10.2017(Duminca asta), ora 19:00, voi anunța cine a câștigat, cine este Miss ECILA , și cine este Mister ECILA  !

    Înscrierea este permisă până la ora 19:00 ! Până voi da eu T.C .

  6. #366
  7. #367
  8. #368
    Reply in Plugins

    Acest plugin blochează ip-urile în nick-uri, dar și în chat.

     

    Spoiler
    
    #include <amxmodx>
    #include <regex>
    
    /*
    const PATH_STRLEN = 96;
    new szMsg[128], szTime[32], szFile[PATH_STRLEN + 14], pFile,g_szLogsDir[PATH_STRLEN]
    */
    
    new Regex:g_rPattern, g_iRegexReturn,szName[32],szError[2],szAuthId[65], szIp[32], iUserId;
    
    public plugin_init() {
        register_plugin("Spambot kicker", "0.1", "Subb98");
    
        if((g_rPattern = regex_compile("((?:\s*\d+\s*\.){3})|(.ru)|(.ua)|(.su)|(.com)|(.net)|(.kz)", g_iRegexReturn, szError, charsmax(szError))) < REGEX_OK) {
            regex_free(g_rPattern);
            set_fail_state("Regex compile error");
        }
    
        /*get_localinfo("amxx_logs", g_szLogsDir, charsmax(g_szLogsDir));
        add(g_szLogsDir, charsmax(g_szLogsDir), "/spambot_kicker");
        if(!dir_exists(g_szLogsDir)) {
            mkdir(g_szLogsDir);
        }*/
    }
    
    public client_authorized(id) {
        get_user_name(id, szName, charsmax(szName));
        if(regex_match_c(szName, g_rPattern, g_iRegexReturn)) {
            iUserId = get_user_userid(id);
            get_user_authid(id, szAuthId, charsmax(szAuthId));
            get_user_ip(id, szIp, charsmax(szIp),1);
            server_cmd("kick #%d ^"Advertising in name^"", iUserId);
            //Logging("#%d %s <%s> [%s] has been kicked", iUserId, szName, szAuthId, szIp);
        }
    }
    
    public client_infochanged(id)
    {
        get_user_name(id, szName, charsmax(szName));
        if(regex_match_c(szName, g_rPattern, g_iRegexReturn)) {
            iUserId = get_user_userid(id);
            get_user_authid(id, szAuthId, charsmax(szAuthId));
            get_user_ip(id, szIp, charsmax(szIp),1);
            server_cmd("kick #%d ^"Advertising in name^"", iUserId);
            //Logging("#%d %s <%s> [%s] has been kicked", iUserId, szName, szAuthId, szIp);
        }
    }
    
    Logging(const szMessage[], any:...) {
        vformat(szMsg, charsmax(szMsg), szMessage, 2);
        get_time("%Y%m%d.log", szTime, charsmax(szTime));
        formatex(szFile, charsmax(szFile), "%s/%s", g_szLogsDir, szTime);
        pFile = fopen(szFile, "at");
        get_time("%Y/%m/%d - %H:%M:%S", szTime, charsmax(szTime));
        fprintf(pFile, "%s: %s^n", szTime, szMsg);
        fclose(pFile);
    }
  9. #369
    Reply in Plugins

    Este un plugin simplu, dar foarte eficient, care nu afectează cu nimic jucătorii reali, doar pe cei care încearcă să fure SteamID-ul cuiva de pe server, sau folosește SteamID Changer

     

    Spoiler
    
    #include <amxmodx>
    
    #if !defined MAX_PLAYERS
    const MAX_PLAYERS = 32;
    #endif
    
    #if !defined MAX_AUTHID_SIZE
    const MAX_AUTHID_SIZE = 64;
    #endif
    
    new g_lastPlayerUserId[MAX_PLAYERS + 1] = {-1, ...};
    
    public plugin_init() {
    	register_plugin("Check for duplicate AuthID", "1.0", "PRoSToC0der");
    }
    
    public client_authorized(playerEntIndex) {
    	static currentAuthID[MAX_AUTHID_SIZE];
    	currentAuthID = GetPlayerAuthID(playerEntIndex);
    	
    	if (!ContainDigits(currentAuthID)) {
    		return;
    	}
    	
    	new playerMaxCount = get_maxplayers();
    	for (new i = 1; i <= playerMaxCount; i++) {
    		if (!IsPlayerAuthorized(i)) {
    			continue;
    		}
    		if (equal(currentAuthID, GetPlayerAuthID(i))) {
    			server_cmd("kick #%d AuthID %s is already in use on this server", get_user_userid(playerEntIndex), currentAuthID);
    			return;
    		}
    	}
    	
    	g_lastPlayerUserId[playerEntIndex] = get_user_userid(playerEntIndex);
    }
    
    public client_disconnect(playerEntIndex) {
    	g_lastPlayerUserId[playerEntIndex] = -1;
    }
    
    IsPlayerAuthorized(playerEntIndex) {
    	return g_lastPlayerUserId[playerEntIndex] != -1 && g_lastPlayerUserId[playerEntIndex] == get_user_userid(playerEntIndex);
    }
    
    GetPlayerAuthID(playerEntIndex) {
    	static authID[MAX_AUTHID_SIZE];
    	get_user_authid(playerEntIndex, authID, charsmax(authID));
    	return authID;
    }
    
    ContainDigits(const str[]) {
    	for (new i = 0; str[i] != EOS; i++) {
    		if (isdigit(str[i])) {
    			return true;
    		}
    	}
    	
    	return false;
    }
  10. #370
  11. #371
  12. #372
  13. #373
  14. #374
  15. #375
    Cerere avatar steam CosmiN
    Reply in Requests Archive

    Acu fiind vorba între noi..nici eu nu înțeleg ce și cum vrei. Voiam să-ți fac eu, da...înțeleg tot. Dacă vrei ajutor, trebuie să vi direct pe „tavă”, și să explici EXACT ce vrei.

  16. #376
  17. #377
    Reply in Admin Complaints

    Nick in joc: eVoLuTiOn
    Nick-ul adminului pe care-l reclami: cel din titlu
    Data(ziua/ora/minutul-aprox.): curente
    Durata banarii (daca este cazul) : permanentă
    Motivul: habar n-am...am jucat 3 minute, un scor cu 6-0, cu 1 hs(steam on), iar el zice, „scoate wallu”, eu zic „nu” la mișto
    Dovezi: 

     

  18. #378
    Propunere - SmileQ
    Reply in Proposals & Suggestions

    Sunt curios cine „abuzează”. Aștept pm(-uri), cu dovezi. Oricum am mai „scăzut” like-urile & dislike-urile care se pot da într-un interval de 24h(1 zi)

  19. #379
  20. #380