Jump to content

Cs-3r4z3r

Members
  • Content Count

    46
  • Joined

  • Last visited

About Cs-3r4z3r

  • Rank
    Advanced Member
  • Birthday 05/18/1985

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Cs-3r4z3r

    Cerere Grad - MariaGdm

    pro =))
  2. Cs-3r4z3r

    Cerere modificare

    Salut! se poate o modificare la acest plugin mai exact la inceputul rundei sa se voteze timpul nu dupa 2 - 3 minute sau cate minute sunt. [sursa=]#include #include #include #define PLUGIN "TimeLimit Vote" #define AUTHOR "sPuf ?" #define VERSION "1.0.1" #pragma semicolon 1 new Options[8]; new g_timelimit; new bool:VoteEnded = false; new seconds; new g_hud; new const CTIME[8] = { 0, 20, 25, 30, 35, 40, 50, 60 }; public plugin_cfg() { g_timelimit = get_cvar_pointer("mp_timelimit"); } public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR); set_task(168.0, "begin_countdown"); register_clcmd("say /vote","vote"); g_hud = CreateHudSyncObj(); } public vote(id) { if(get_user_flags(id) & ADMIN_SLAY && !VoteEnded) { VoteEnded = false; begin_countdown(); } return 1; } public begin_countdown() { if(!VoteEnded) { seconds = 10; set_task(2.0,"begin_now"); } } public begin_now() { if(seconds <= 0 ) { start_vote(); client_cmd(0,"spk ^"Gman/Gman_Choose%d^"",random_num(1,2)); return 1; } if(seconds == 5) client_cmd(0,"spk ^"fvox/five _comma four _comma three _comma two _comma one^""); set_hudmessage(49, 159, 249, -1.0, 0.29, 0, 0.0, 2.0, 0.0, 1.0, 4); ShowSyncHudMsg(0, g_hud, "Un vot pentru a seta durata hartii^nVa incepe in %d secund%s !",seconds,seconds == 1? "a" : "e"); seconds -= 1; set_task(1.0,"begin_now"); return 0; } public start_vote() { if(VoteEnded) return 1; new menu = menu_create("\r Cat timp vrei sa joci aceasta harta ?", "menu_handler"); new Minutes[8][64],Key[8][5]; for (new i = 1; i< 8;i++) { formatex(Minutes, 63, "%d minute", CTIME); formatex(Key, 4, "%d",i); menu_additem(menu,Minutes,Key); } /* menu_additem(menu, "\w20 minute", "1", 0); menu_additem(menu, "\w25 minute", "2", 0); menu_additem(menu, "\w30 minute", "3", 0); menu_additem(menu, "\w35 minute", "4", 0); menu_additem(menu, "\w40 minute", "5", 0); menu_additem(menu, "\w50 minute", "6", 0); menu_additem(menu, "\w60 minute", "7", 0);*/ menu_addblank(menu, 0); menu_setprop(menu, MPROP_EXIT, MEXIT_ALL); new players[32], inum; get_players(players, inum, "ch"); for(new i = 0; i < inum; i++) { menu_display(players, menu, 0); } set_task(15.0, "finish_vote"); Options[1] = Options[2] = Options[3] = Options[4] = Options[5] = Options[6] = Options[7] = 0; return 1; } public menu_handler(id, menu, item) { if (item == MENU_EXIT || VoteEnded) { return PLUGIN_HANDLED; } new data[6], name[32]; new access, callback; menu_item_getinfo(menu, item, access, data, 5, _, _, callback); new key = str_to_num(data); get_user_name(id, name, 31); new players[32], inum, i; get_players(players, inum, "ch"); for(i = 0; i < inum; i++) { if(is_user_connected(players)) { ColorChat(players, RED, "^x04[D/C]^x03 %s^x01 a votat pentru^x03 %d^x01 minute !", name,CTIME[key]); } } ++Options[key]; return PLUGIN_HANDLED; } public finish_vote() { new bool:Won = false,wtime; if(Options[1] > Options[2] && Options[1] > Options[3] && Options[1] > Options[4] && Options[1] > Options[5] && Options[1] > Options[6] && Options[1] > Options[7] ) { new players[32], inum, i; get_players(players, inum, "ch"); for(i = 0; i < inum; i++) { if(is_user_connected(players)) { ColorChat(players, RED, "^x04[D/C]^x01 Optiunea de^x03 20^x01 minute a castigat cu^x03 %d^x01 vot%s !",Options[1],Options[1] == 1 ? "" : "uri"); } } wtime = 20; Won = true; } else if(!Won && Options[2] > Options[1] && Options[2] > Options[3] && Options[2] > Options[4] && Options[2] > Options[5] && Options[2] > Options[6] && Options[2] > Options[7] ) { new players[32], inum, i; get_players(players, inum, "ch"); for(i = 0; i < inum; i++) { if(is_user_connected(players)) { ColorChat(players, RED, "^x04[D/C]^x01 Optiunea de^x03 25^x01 minute a castigat cu^x03 %d^x01 vot%s !",Options[2],Options[2] == 1 ? "" : "uri"); } } wtime = 25; Won = true; } else if(!Won && Options[3] > Options[1] && Options[3] > Options[2] && Options[3] > Options[4] && Options[3] > Options[5] && Options[3] > Options[6] && Options[3] > Options[7] ) { new players[32], inum, i; get_players(players, inum, "ch"); for(i = 0; i < inum; i++) { if(is_user_connected(players)) { ColorChat(players, RED, "^x04[D/C]^x01 Optiunea de^x03 30^x01 minute a castigat cu^x03 %d^x01 vot%s !",Options[3],Options[3] == 1 ? "" : "uri"); } } wtime = 30; Won = true; } else if(!Won && Options[4] > Options[1] && Options[4] > Options[2] && Options[4] > Options[3] && Options[4] > Options[5] && Options[4] > Options[6] && Options[4] > Options[7] ) { new players[32], inum, i; get_players(players, inum, "ch"); for(i = 0; i < inum; i++) { if(is_user_connected(players)) { ColorChat(players, RED, "^x04[D/C]^x01 Optiunea de^x03 35^x01 minute a castigat cu^x03 %d^x01 vot%s !",Options[4],Options[4] == 1 ? "" : "uri"); } } wtime = 35; Won = true; } else if(!Won && Options[5] > Options[1] && Options[5] > Options[2] && Options[5] > Options[3] && Options[5] > Options[4] && Options[5] > Options[6] && Options[5] > Options[7] ) { new players[32], inum, i; get_players(players, inum, "ch"); for(i = 0; i < inum; i++) { if(is_user_connected(players)) { ColorChat(players, RED, "^x04[D/C]^x01 Optiunea de^x03 40^x01 minute a castigat cu^x03 %d^x01 vot%s !",Options[5],Options[5] == 1 ? "" : "uri"); } } wtime = 40; Won = true; } else if(!Won && Options[6] > Options[1] && Options[6] > Options[2] && Options[6] > Options[3] && Options[6] > Options[4] && Options[6] > Options[5] && Options[6] > Options[7] ) { new players[32], inum, i; get_players(players, inum, "ch"); for(i = 0; i < inum; i++) { if(is_user_connected(players)) { ColorChat(players, RED, "^x04[D/C]^x01 Optiunea de^x03 50^x01 minute a castigat cu^x03 %d^x01 vot%s !",Options[6],Options[6] == 1 ? "" : "uri"); } } wtime = 50; Won = true; } else if(!Won && Options[7] > Options[1] && Options[7] > Options[2] && Options[7] > Options[3] && Options[7] > Options[4] && Options[7] > Options[5] && Options[7] > Options[6] ) { new players[32], inum, i; get_players(players, inum, "ch"); for(i = 0; i < inum; i++) { if(is_user_connected(players)) { ColorChat(players, RED, "^x04[D/C]^x01 Optiunea de^x03 60^x01 minute a castigat cu^x03 %d^x01 vot%s !",Options[7],Options[7] == 1 ? "" : "uri"); } } wtime = 60; Won = true; } if(Won) { client_cmd(0,"spk ^"barney/letsgo^""); set_pcvar_num(g_timelimit, wtime ); VoteEnded = true; return 1; } else if( Options[1] == 0 && Options[2] == 0 && Options[3] == 0 && Options[4] == 0 && Options[5] == 0 && Options[6] == 0 && Options[7] == 0) { new players[32], inum, i; get_players(players, inum, "ch"); for(i = 0; i < inum; i++) { if(is_user_connected(players)) { ColorChat(players, RED, "^x04[D/C]^x03 Votul a esuat !"); client_cmd(players,"spk ^"barney/waitin^""); } } VoteEnded = true; return 1; } else { new total_time,vote_counts; for(new i = 1;i < 7; i++) { while( Options >= 1 ) { Options -= 1; total_time += CTIME; vote_counts++; } } new final_time = total_time / vote_counts; set_pcvar_num(g_timelimit, final_time ); new players[32], inum, i; get_players(players, inum, "ch"); for(i = 0; i < inum; i++) { if(is_user_connected(players)) { client_cmd(players,"spk ^"barney/letsgo^""); ColorChat(players, RED, "^x04[D/C]^x01 Timpul va fi setat din media facuta,^x03 %d^x01 minute !", final_time); } } VoteEnded = true; return 1; } return 0; }[/sursa]
  3. Cs-3r4z3r

    Cerere plugin res/txt

    Salut! La multi ani! am si eu nevoie de un plugin care sa traga de la folderul maps si harta dar cele cu res/txt,am gasit asta si as dori daca se poate o modificare. [sursa=]#include < amxmodx > // #pragma semicolon 1 #define PLUGIN "17b Res utf BOM remover" #define VERSION "0.0.1" new Trie:g_tDefaultRes public plugin_init() { register_plugin( PLUGIN, VERSION, "ConnorMcLeod" ); g_tDefaultRes = TrieCreate() TrieSetCell( g_tDefaultRes , "de_storm.res", 1); TrieSetCell( g_tDefaultRes , "default.res", 1); set_task(10.0, "Clean_Res_Files"); } public Clean_Res_Files() { new szMapsFolder[] = "maps"; new const szResExt[] = ".res"; new szResFile[64], iLen; new dp = open_dir(szMapsFolder, szResFile, charsmax(szResFile)); if( !dp ) { return; } // server_print("Opening %s folder (%s)", szMapsFolder, szResFile) new szFullPathFileName[128]; do { // server_print("Proceeding %s", szResFile) iLen = strlen(szResFile) if( iLen > 4 && equali(szResFile[iLen-4], szResExt) ) { if( TrieKeyExists(g_tDefaultRes, szResFile) ) { // server_print("Default %s file, continuing...", szResFile) continue } formatex(szFullPathFileName, charsmax(szFullPathFileName), "%s/%s", szMapsFolder, szResFile) write_file(szFullPathFileName, "/////////////////////////////////////////////////////////////^n", 0); server_print("Proceeded %s", szResFile); } } while( next_file(dp, szResFile, charsmax(szResFile)) ) close_dir(dp) }[/sursa]
  4. Cs-3r4z3r

    Cerere modfiicare radio

    Salut! La multi ani tuturor,as dori si eu daca se poate ca la acest plugin o modificare,sa poarneasca direct radio nu sa apara o fereastra si sa-l pornesti de acolo sau sa iti iasa si sa il deschida in winamp,ci doresc doar pe server si direct. [sursa=] var zu_autoplay=false; [/sursa]
  5. Salut! se poate sa imi scoata si mie culorile din aceste pluginuri,si daca se poate la cel de gag adik sa nu le permite oamenilor nici sa intre pe server nici cu reclama in nume,ca e vb de www sau .ro/etc [sursa=]/* Descriere: Cu Acest Plugin pe Serverul Tau Jucatorii Se Pot Pune Spectator Prin Simpla Comanda /spec. Si Pot Reveni La Joc Prin Simpla Comanda /back(va fin in fosta echipa) © www.forum.godplay.ro Plugin: Fast Spectate Author: sPuf ? Vers: 1.0 Cvaruri: fs_score 1/0 daca este setat 1 cand jucatorul va da /back ii va pune scorul care il avea cand a scris /spec fs_messages 1/0 daca este setat 1 cand scrie /spec sau /back ii apar niste mesaje.. fs_spawn 1/0 daca este setat 1 cand scrie /back va primi spawn Changelog: v1.0 prima lansare a pluginului v2.0 adaugarea cvarurilor fs_spawn fs_score */ #include #include #include #include #pragma semicolon 1 static const PLUGIN_NAME[] = "Fast Spectate"; static const PLUGIN_AUTHOR[] = "sPuf ?"; static const PLUGIN_VERSION[] = "2.0"; new gReturn[33],gDeaths[33],gFrags[33]; new cvar_score,cvar_msg,cvar_spawn; static const TAG[] = "*"; public plugin_init() { register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHOR); cvar_score = register_cvar("fs_score","1"); cvar_msg = register_cvar("fs_message","1"); cvar_spawn = register_cvar("fs_spawn","1"); register_clcmd("say /spec","saySpec"); register_clcmd("say_team /spec","saySpec"); register_clcmd("say /back","sayBack"); register_clcmd("say_team /back","sayBack"); } public saySpec(id) { new team = get_user_team(id); switch(team) { case 1: { gReturn[id] = 1; } case 2: { gReturn[id] = 2; } case 3: { if(get_pcvar_num(cvar_msg)) { ColorChat(id,RED,"^x04%s ^x03 Esti Deja Spectator ^x04!",TAG); } return PLUGIN_HANDLED; } } if(get_pcvar_num(cvar_score) == 1) { gFrags[id] = get_user_frags(id); gDeaths[id] = get_user_deaths(id); } if(is_user_alive(id)) { user_silentkill(id); cs_set_user_team(id,3); if(get_pcvar_num(cvar_msg)) { ColorChat(id,RED,"^x04%s^x03 Ai Fost Transferat Spectator ^x04!",TAG); ColorChat(id,RED,"^x04%s^x03 Foloseste Comanda ^x04^"/back^" ^x03Pentru A Reveni In Fosta Echipa ^x04!",TAG); } return PLUGIN_HANDLED; } else { cs_set_user_team(id,3); if(get_pcvar_num(cvar_msg)) { ColorChat(id,RED,"^x04%s^x03 Ai Fost Transferat Spectator ^x04!",TAG); ColorChat(id,RED,"^x04%s^x03 Foloseste Comanda ^x04^"/back^" ^x03Pentru A Reveni In Fosta Echipa ^x04!",TAG); } return PLUGIN_HANDLED; } return PLUGIN_CONTINUE; } public sayBack(id) { if(!(get_user_team(id) == 3) || is_user_alive(id)) { if(get_pcvar_num(cvar_msg)) { ColorChat(id,RED,"^x04%s^x03 Poti Folosi Aceasta Comanda Doar Cand Esti Spectator ^x04!",TAG); ColorChat(id,RED,"^x04%s^x03 Foloseste Comanda ^x04^"/spec^"^x03 Ca Sa Fii Transferat Spectator ^x04!",TAG); return PLUGIN_HANDLED; } } else { switch(gReturn[id]) { case 1: { cs_set_user_team(id,1); if(get_pcvar_num(cvar_msg)) { ColorChat(id,RED,"^x04%s^x03 Ai Fost Transferat La Echipa Terrorist ^x04!",TAG); ColorChat(id,RED,"^x04%s^x03 Foloseste Comanda ^x04^"/spec^"^x03 Ca Sa Fii Transferat Spectator ^x04!",TAG); } if(get_pcvar_num(cvar_score)) { cs_set_user_deaths(id, gDeaths[id]); set_user_frags(id, gFrags[id]); cs_set_user_deaths(id, gDeaths[id]); set_user_frags(id, gFrags[id]); ColorChat(id,RED,"^x04%s^x03 Scorul Tau Este ^x04%d^x03-^x04%d !",TAG,gFrags[id],gDeaths[id]); } if(get_pcvar_num(cvar_spawn)) { spawn(id); } return PLUGIN_HANDLED; } case 2: { cs_set_user_team(id,2); if(get_pcvar_num(cvar_msg)) { ColorChat(id,RED,"^x04%s^x03 Ai Fost Transferat La Echipa Counter-Terrorist ^x04!",TAG); ColorChat(id,RED,"^x04%s^x03 Foloseste Comanda ^x04^"/spec^"^x03 Ca Sa Fii Transferat Spectator ^x04!",TAG); } if(get_pcvar_num(cvar_score)) { cs_set_user_deaths(id, gDeaths[id]); set_user_frags(id, gFrags[id]); cs_set_user_deaths(id, gDeaths[id]); set_user_frags(id, gFrags[id]); ColorChat(id,RED,"^x04%s^x03 Scorul Tau Este ^x04%d^x03-^x04%d !",TAG,gFrags[id],gDeaths[id]); } if(get_pcvar_num(cvar_spawn)) { spawn(id); } return PLUGIN_HANDLED; } } } return PLUGIN_CONTINUE; } public client_putinserver(id) { gDeaths[id] = 0; gFrags[id] = 0; gReturn[id] = 0; } public client_disconnect(id) { gDeaths[id] = 0; gFrags[id] = 0; gReturn[id] = 0; }[/sursa] [sursa=]#include #include #include #pragma tabsize 0 #define ACCESS ADMIN_SLAY #define WORDS 9999 #define SWEAR_GAGMINUTES 5 #define SHOW new const g_FileName[] = "automute-words.ini"; new bool:g_Gaged[ 33 ], g_GagTime[ 33 ], bool:g_SwearGag[ 33 ], bool:g_CmdGag[ 33 ], bool:g_NameChanged[33]; new g_reason[ 32 ], g_admin[ 32 ], g_name[ 33 ][ 32 ]; new g_WordsFile[ 128 ]; new g_Words[ WORDS ][ 32 ], g_Count, g_Len; new point new g_vault public plugin_init() { register_plugin("GAG-Manager", "1.0", "ExoTiQ") register_concmd( "amx_gag", "gag_cmd", ACCESS,"- " ); register_concmd( "amx_ungag", "ungag_cmd", ACCESS, "- " ); register_clcmd( "say", "check" ); register_clcmd( "say_team", "check" ); g_vault = nvault_open("ListaDisconnect"); point = get_cvar_pointer( "amx_show_activity" ); } public plugin_cfg() { static dir[ 999 ]; get_localinfo( "amxx_configsdir", dir, 998 ); formatex( g_WordsFile , 127 , "%s/%s" , dir, g_FileName ); if( !file_exists( g_WordsFile ) ) write_file( g_WordsFile, "[Gag Words]", -1 ); new Len; while( g_Count < WORDS && read_file( g_WordsFile, g_Count ,g_Words[ g_Count ][ 1 ], 30, Len ) ) { g_Words[ g_Count ][ 0 ] = Len; g_Count++; } } public client_connect(id) { LoadMutedPlayers(id) } public gag_cmd( id, level, cid ) { if( !cmd_access( id, level, cid, 4 ) ) return PLUGIN_HANDLED; new arg[ 32 ], arg2[ 6 ], reason[ 32 ]; new name[ 32 ], namet[ 32 ]; new minutes; read_argv(1, arg, 31) new player = cmd_target(id, arg, 9) if (!player) return PLUGIN_HANDLED read_argv( 1, arg, sizeof arg - 1 ); read_argv( 2, arg2, sizeof arg2 - 1 ); read_argv( 3, reason, sizeof reason - 1 ); get_user_name( id, name, 31 ); copy( g_admin, 31, name ); copy( g_reason, 31, reason ); remove_quotes( reason ); minutes = str_to_num( arg2 ); new target = cmd_target( id, arg, 10 ); if( !target) return PLUGIN_HANDLED; if( g_Gaged[ target ] ) { console_print( id, "Jucatorul deja are gag!" ); return PLUGIN_HANDLED; } get_user_name( target, namet, 31 ); copy( g_name[ target ], 31, namet ); g_CmdGag[ target ] = true; g_Gaged[target] = true; g_GagTime[ target ] = minutes; culoare_scris( 0, "!tADMIN!g %s : !tA dat gag jucatorului !g%s!t pentru !g%d !tminute. Motiv: !g%s",get_pcvar_num( point ) == 2 ? name : "", namet, minutes, reason ); set_task( 60.0, "count", target + 123, _, _, "b" ); return PLUGIN_HANDLED; } public ungag_cmd( id,level, cid ) { if( !cmd_access( id, level, cid, 2 ) ) return PLUGIN_HANDLED; new arg[ 32 ], reason[ 32 ], name[ 32 ]; read_argv( 1, arg, sizeof arg - 1 ); read_argv( 2, reason, sizeof reason - 1 ); get_user_name( id, name, sizeof name - 1 ); remove_quotes( reason ); new target = cmd_target( id, arg, 11 ); if( !target ) return PLUGIN_HANDLED; new namet[ 32 ]; get_user_name( target, namet, sizeof namet - 1 ); if( !g_Gaged[ target ] ) { console_print( id, "Jucatorul %s nu are gag.", namet ); return PLUGIN_HANDLED; } g_Gaged[ target ] = false; g_SwearGag[ target ] = false; if( g_NameChanged[ target ] ) client_cmd( target, "name ^"%s^"", g_name[ target ] ); g_NameChanged[ target ] = false; remove_task( target + 123 ); culoare_scris( 0, "!tADMIN!g %s : !tA scos gag jucatorului !g%s .",get_pcvar_num( point ) == 2 ? name : "", namet ); return PLUGIN_HANDLED; } public count( task ) { new index = task - 123; if( !is_user_connected( index ) ) return 0; g_GagTime[index] -= 1; if( g_GagTime[ index ] <= 0 ) { remove_task( index + 123 ); new name[ 32 ] get_user_name( index, name, 31 ); culoare_scris( 0, "!g[GAG]!t Jucatorul!g %s !tNu mai are gag!",name ); g_Gaged[ index ] = false; if( g_NameChanged[ index ] ) client_cmd( index, "name ^"%s^"", g_name[ index ] ); return 0; } return 1; } public check( id ) { new said[ 192 ]; read_args( said, sizeof said - 1 ); if( !strlen( said ) ) return PLUGIN_CONTINUE; if( g_Gaged[ id ] ) { if( g_CmdGag[ id ] ) { culoare_scris( id,"!g[GAG]!t Ai luat gag de la !g%s ", g_admin); culoare_scris( id,"!g[GAG]!t Timp ramas pana la ungag !g%d !tminute." , g_GagTime[ id ], g_GagTime[ id ] == 1 ? "" : "s" ); culoare_scris( id,"!g[GAG]!t Motiv: !g%s ", g_reason ); return PLUGIN_HANDLED; } else if( g_SwearGag[ id ] ) { culoare_scris( id, "!g[GAG]!t Ai primit gag de la !gserver. ") culoare_scris( id, "!g[GAG]!t Timp ramas pana la ungag !g%d !tminute. " , g_GagTime[ id ], g_GagTime[ id ] == 1 ? "" : "s" ); return PLUGIN_HANDLED; } } else { new bool:g_Sweared, i, pos; for( i = 0; i < g_Count; ++i ) { if( ( pos = containi( said, g_Words[ i ][ 1 ] ) ) != -1 ) { g_Len = g_Words[ i ][ 0 ]; while( g_Len-- ) said[ pos++ ] = '*'; g_Sweared = true; continue; } } if( g_Sweared ) { new cmd[ 32 ], name[ 32 ]; get_user_name( id, name, sizeof name - 1 ); read_argv( 0, cmd, sizeof cmd - 1 ); copy( g_name[ id ], 31, name ); engclient_cmd( id, cmd, said ); g_Gaged[ id ] = true; g_CmdGag[ id ] = false; g_SwearGag[ id ] = true; g_GagTime[ id ] = SWEAR_GAGMINUTES; culoare_scris( 0,"!g[GAG]!t Jucatorul !g%s !t a primit gag!g 5!t minut.!g[Protectie Anti-Reclama]",name ); set_task( 60.0, "count",id+123,_,_,"b"); return PLUGIN_HANDLED; } } return PLUGIN_CONTINUE; } public client_disconnect(id) { if(g_Gaged[id]) { new Nick[32],Authid[35],userip[32] get_user_name(id,Nick,31) get_user_ip(id,userip,31); get_user_authid(id,Authid,34) culoare_scris(0, "!g[GAG]!t Jucatorul cu gag !g%s !t[!gIP !t: !g%s!t] A iesit de pe server.",Nick,userip) SaveMutedPlayers(id); remove_task( id ); } } public SaveMutedPlayers(id) { new name[32], userip[32]; get_user_name(id,name,31); get_user_ip(id,userip,31); new vaultkey[64],vaultdata[256] format(vaultkey,63,"%s[iP]-Muted",name,userip) format(vaultdata,255,"%i#%i#",g_Gaged[id],g_SwearGag[id]) nvault_set(g_vault,vaultkey,vaultdata) return PLUGIN_CONTINUE } public LoadMutedPlayers(id) { new name[32], userip[32]; get_user_name(id,name,31); get_user_ip(id,userip,31); new vaultkey[64],vaultdata[256] format(vaultkey,63,"%s[iP]-Muted",name,userip) format(vaultdata,255,"%i#%i#",g_Gaged[id],g_SwearGag[id]) nvault_get(g_vault,vaultkey,vaultdata,255) replace_all(vaultdata, 255, "#", " ") return PLUGIN_CONTINUE } stock culoare_scris(const id, const input[], any:...) { new count = 1, players[32] static msg[191] vformat(msg, 190, input, 3) replace_all(msg, 190, "!g", "^4") replace_all(msg, 190, "!y", "^1") replace_all(msg, 190, "!t", "^3") if (id) players[0] = id; else get_players(players, count, "ch") { for (new i = 0; i < count; i++) { if (is_user_connected(players)) { message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players) write_byte(players); write_string(msg); message_end(); } } } }[/sursa] [sursa=]#include #include #include #define NUME_PLUGIN "PSS Transfer" #define VERSIUNE_PLUGIN "1.0" #define CREATOR_PLUGIN "Stefan" #define CHTEAM_CMD_MODE #define CHTEAM_SAY_ON #define CHTEAM_SAY_COMMAND #define CHTEAM_ACCES_COMANDA ADMIN_RCON new chteam_on new g_Prefix[] = "Transfer" public plugin_init() { register_plugin(NUME_PLUGIN, VERSIUNE_PLUGIN, CREATOR_PLUGIN) register_dictionary("chteam.txt") chteam_on = register_cvar("chteam_on","1") #if defined CHTEAM_CMD_MODE register_concmd("amx_t","cmd_t",ADMIN_KICK, "- >nume sau #userid< -") register_concmd("amx_ct","cmd_ct",ADMIN_KICK, "- >nume sau #userid< -") register_concmd("amx_spec","cmd_spec",ADMIN_KICK, "- >nume sau #userid< -") #else register_concmd("admin_t","cmd_t",ADMIN_KICK, "- >nume sau #userid< -") register_concmd("admin_ct","cmd_ct",ADMIN_KICK, "- >nume sau #userid< -") register_concmd("admin_spec","cmd_spec",ADMIN_KICK, "- >nume sau #userid< -") #endif #if defined CHTEAM_SAY_ON register_clcmd("say /t", "say_t", ADMIN_ALL, "") register_clcmd("say /ct", "say_ct", ADMIN_ALL, "") register_clcmd("say /spec", "say_spec", ADMIN_ALL, "") register_clcmd("say_team /t", "say_t", ADMIN_ALL, "") register_clcmd("say_team /ct", "say_ct", ADMIN_ALL, "") register_clcmd("say_team /spec", "say_spec", ADMIN_ALL, "") #endif } public cmd_t(id, level, cid) { if(get_pcvar_num(chteam_on) == 0) return PLUGIN_HANDLED if(!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new argument[32] read_argv(1, argument, 31) new jucator = cmd_target(id, argument, CMDTARGET_NO_BOTS) new nume_admin[32], nume_jucator[32] get_user_name(id, nume_admin, 31) get_user_name(jucator, nume_jucator, 31) if(!jucator) return PLUGIN_HANDLED if(cs_get_user_team(jucator) == CS_TEAM_T) { console_print(id, "[%s] %L", g_Prefix, LANG_PLAYER, "ADMIN_IF_TEAM1", nume_jucator) return PLUGIN_HANDLED } else { if(is_user_alive(jucator)) user_kill(jucator, 1) cs_set_user_team(jucator, 1) player_color(0, "%L", LANG_PLAYER, "ADMIN_CHTEAM_1", nume_admin, nume_jucator) console_print(id, "[%s] %L", g_Prefix, LANG_PLAYER, "ADMIN_CHTEAM_01", nume_jucator) log_amx("[%s] %L", g_Prefix, LANG_PLAYER, "ADMIN_LOG_CHTEAM", nume_jucator, nume_admin) } return PLUGIN_HANDLED } public cmd_ct(id, level, cid) { if(get_pcvar_num(chteam_on) == 0) return PLUGIN_HANDLED if(!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new argument[32] read_argv(1, argument, 31) new jucator = cmd_target(id, argument, CMDTARGET_NO_BOTS) new nume_admin[32], nume_jucator[32] get_user_name(id, nume_admin, 31) get_user_name(jucator, nume_jucator, 31) if(!jucator) return PLUGIN_HANDLED if(cs_get_user_team(jucator) == CS_TEAM_CT) { console_print(id, "[%s] %L", g_Prefix, LANG_PLAYER, "ADMIN_IF_TEAM2", nume_jucator) return PLUGIN_HANDLED } else { if(is_user_alive(jucator)) user_kill(jucator, 1) cs_set_user_team(jucator, 2) player_color(0, "%L", LANG_PLAYER, "ADMIN_CHTEAM_2", nume_admin, nume_jucator) console_print(id, "[%s] %L", g_Prefix, LANG_PLAYER, "ADMIN_CHTEAM_02", nume_jucator) log_amx("[%s] %L", g_Prefix, LANG_PLAYER, "ADMIN_LOG_CHTEAM2", nume_jucator, nume_admin) } return PLUGIN_HANDLED } public cmd_spec(id, level, cid) { if(get_pcvar_num(chteam_on) == 0) return PLUGIN_HANDLED if(!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED new argument[32] read_argv(1, argument, 31) new jucator = cmd_target(id, argument, CMDTARGET_NO_BOTS) new nume_admin[32], nume_jucator[32] get_user_name(id, nume_admin, 31) get_user_name(jucator, nume_jucator, 31) if(!jucator) return PLUGIN_HANDLED if(cs_get_user_team(jucator) == CS_TEAM_SPECTATOR) { console_print(id, "[%s] %L", g_Prefix, LANG_PLAYER, "ADMIN_IF_TEAM3", nume_jucator) return PLUGIN_HANDLED } else { if(is_user_alive(jucator)) user_kill(jucator, 1) client_cmd(jucator, "jointeam 6") player_color(0, "%L", LANG_PLAYER, "ADMIN_CHTEAM_3", nume_admin, nume_jucator) console_print(id, "[%s] %L", g_Prefix, LANG_PLAYER, "ADMIN_CHTEAM_03", nume_jucator) log_amx("[%s] %L", g_Prefix, LANG_PLAYER, "ADMIN_LOG_CHTEAM3", nume_jucator, nume_admin) } return PLUGIN_HANDLED } #if defined CHTEAM_SAY_ON public say_t(id) { if(cs_get_user_team(id) == CS_TEAM_T) { player_color(id, "!v* !c%L", LANG_PLAYER, "ADMIN_IF_SAY1") return PLUGIN_HANDLED } else { if(is_user_alive(id)) user_kill(id, 1) cs_set_user_team(id, 1) player_color(id, "!v[!c%s!v] !c%L", g_Prefix, LANG_PLAYER, "ADMIN_SUCC_SAY1") } return PLUGIN_HANDLED } public say_ct(id) { if(cs_get_user_team(id) == CS_TEAM_CT) { player_color(id, "!v* !c%L", LANG_PLAYER, "ADMIN_IF_SAY2") return PLUGIN_HANDLED } else { if(is_user_alive(id)) user_kill(id, 1) cs_set_user_team(id, 2) player_color(id, "!v[!c%s!v] !c%L", g_Prefix, LANG_PLAYER, "ADMIN_SUCC_SAY2") } return PLUGIN_HANDLED } public say_spec(id) { if(cs_get_user_team(id) == CS_TEAM_SPECTATOR) { player_color(id, "!v* !c%L", LANG_PLAYER, "ADMIN_IF_SAY3") return PLUGIN_HANDLED } else { if(is_user_alive(id)) user_kill(id, 1) client_cmd(id, "jointeam 6") player_color(id, "!v[!c%s!v] !c%L", g_Prefix, LANG_PLAYER, "ADMIN_SUCC_SAY3") } return PLUGIN_HANDLED } #endif stock player_color( const id, const input[ ], any:... ) { new count = 1, players[ 32 ] static msg[ 191 ] vformat( msg, 190, input, 3 ) replace_all( msg, 190, "!v", "^4" ) /* verde */ replace_all( msg, 190, "!c", "^1" ) /* galben */ replace_all( msg, 190, "!e", "^3" ) /* ct=albastru | t=rosu */ replace_all( msg, 190, "!e2", "^0" ) /* normal-echipa */ if( id ) players[ 0 ] = id; else get_players( players, count, "ch" ) { for( new i = 0; i < count; i++ ) { if( is_user_connected( players[ i ] ) ) { message_begin( MSG_ONE_UNRELIABLE, get_user_msgid( "SayText" ), _, players[ i ] ) write_byte( players[ i ] ); write_string( msg ); message_end( ); } } } }[/sursa]
  6. Cs-3r4z3r

    Salvatorul Craciunului [Xmas Random] v2.0

    clar tare pluginul de aia pica si serverul :))
  7. Cs-3r4z3r

    Vip Gold/Silver

    am uitat ca dinamovisti stiu sa numele 1 - 2 - 4 :))
  8. Salut! As dori si eu o moca modificare dare se poate adik sa se scoata culorile din el sa scrile din el.Multumesc frumos [sursa=]#include #include #include #pragma tabsize 0 #define ACCESS ADMIN_SLAY #define WORDS 9999 #define SWEAR_GAGMINUTES 5 #define SHOW new const g_FileName[] = "automute-words.ini"; new bool:g_Gaged[ 33 ], g_GagTime[ 33 ], bool:g_SwearGag[ 33 ], bool:g_CmdGag[ 33 ], bool:g_NameChanged[33]; new g_reason[ 32 ], g_admin[ 32 ], g_name[ 33 ][ 32 ]; new g_WordsFile[ 128 ]; new g_Words[ WORDS ][ 32 ], g_Count, g_Len; new point new g_vault public plugin_init() { register_plugin("GAG-Manager", "1.0", "ExoTiQ") register_concmd( "amx_gag", "gag_cmd", ACCESS,"- " ); register_concmd( "amx_ungag", "ungag_cmd", ACCESS, "- " ); register_clcmd( "say", "check" ); register_clcmd( "say_team", "check" ); g_vault = nvault_open("ListaDisconnect"); point = get_cvar_pointer( "amx_show_activity" ); } public plugin_cfg() { static dir[ 999 ]; get_localinfo( "amxx_configsdir", dir, 998 ); formatex( g_WordsFile , 127 , "%s/%s" , dir, g_FileName ); if( !file_exists( g_WordsFile ) ) write_file( g_WordsFile, "[Gag Words]", -1 ); new Len; while( g_Count < WORDS && read_file( g_WordsFile, g_Count ,g_Words[ g_Count ][ 1 ], 30, Len ) ) { g_Words[ g_Count ][ 0 ] = Len; g_Count++; } } public client_connect(id) { LoadMutedPlayers(id) } public gag_cmd( id, level, cid ) { if( !cmd_access( id, level, cid, 4 ) ) return PLUGIN_HANDLED; new arg[ 32 ], arg2[ 6 ], reason[ 32 ]; new name[ 32 ], namet[ 32 ]; new minutes; read_argv(1, arg, 31) new player = cmd_target(id, arg, 9) if (!player) return PLUGIN_HANDLED read_argv( 1, arg, sizeof arg - 1 ); read_argv( 2, arg2, sizeof arg2 - 1 ); read_argv( 3, reason, sizeof reason - 1 ); get_user_name( id, name, 31 ); copy( g_admin, 31, name ); copy( g_reason, 31, reason ); remove_quotes( reason ); minutes = str_to_num( arg2 ); new target = cmd_target( id, arg, 10 ); if( !target) return PLUGIN_HANDLED; if( g_Gaged[ target ] ) { console_print( id, "Jucatorul deja are gag!" ); return PLUGIN_HANDLED; } get_user_name( target, namet, 31 ); copy( g_name[ target ], 31, namet ); g_CmdGag[ target ] = true; g_Gaged[target] = true; g_GagTime[ target ] = minutes; culoare_scris( 0, "!tADMIN!g %s : !tA dat gag jucatorului !g%s!t pentru !g%d !tminute. Motiv: !g%s",get_pcvar_num( point ) == 2 ? name : "", namet, minutes, reason ); set_task( 60.0, "count", target + 123, _, _, "b" ); return PLUGIN_HANDLED; } public ungag_cmd( id,level, cid ) { if( !cmd_access( id, level, cid, 2 ) ) return PLUGIN_HANDLED; new arg[ 32 ], reason[ 32 ], name[ 32 ]; read_argv( 1, arg, sizeof arg - 1 ); read_argv( 2, reason, sizeof reason - 1 ); get_user_name( id, name, sizeof name - 1 ); remove_quotes( reason ); new target = cmd_target( id, arg, 11 ); if( !target ) return PLUGIN_HANDLED; new namet[ 32 ]; get_user_name( target, namet, sizeof namet - 1 ); if( !g_Gaged[ target ] ) { console_print( id, "Jucatorul %s nu are gag.", namet ); return PLUGIN_HANDLED; } g_Gaged[ target ] = false; g_SwearGag[ target ] = false; if( g_NameChanged[ target ] ) client_cmd( target, "name ^"%s^"", g_name[ target ] ); g_NameChanged[ target ] = false; remove_task( target + 123 ); culoare_scris( 0, "!tADMIN!g %s : !tA scos gag jucatorului !g%s .",get_pcvar_num( point ) == 2 ? name : "", namet ); return PLUGIN_HANDLED; } public count( task ) { new index = task - 123; if( !is_user_connected( index ) ) return 0; g_GagTime[index] -= 1; if( g_GagTime[ index ] <= 0 ) { remove_task( index + 123 ); new name[ 32 ] get_user_name( index, name, 31 ); culoare_scris( 0, "!g[GAG]!t Jucatorul!g %s !tNu mai are gag!",name ); g_Gaged[ index ] = false; if( g_NameChanged[ index ] ) client_cmd( index, "name ^"%s^"", g_name[ index ] ); return 0; } return 1; } public check( id ) { new said[ 192 ]; read_args( said, sizeof said - 1 ); if( !strlen( said ) ) return PLUGIN_CONTINUE; if( g_Gaged[ id ] ) { if( g_CmdGag[ id ] ) { culoare_scris( id,"!g[GAG]!t Ai luat gag de la !g%s ", g_admin); culoare_scris( id,"!g[GAG]!t Timp ramas pana la ungag !g%d !tminute." , g_GagTime[ id ], g_GagTime[ id ] == 1 ? "" : "s" ); culoare_scris( id,"!g[GAG]!t Motiv: !g%s ", g_reason ); return PLUGIN_HANDLED; } else if( g_SwearGag[ id ] ) { culoare_scris( id, "!g[GAG]!t Ai primit gag de la !gserver. ") culoare_scris( id, "!g[GAG]!t Timp ramas pana la ungag !g%d !tminute. " , g_GagTime[ id ], g_GagTime[ id ] == 1 ? "" : "s" ); return PLUGIN_HANDLED; } } else { new bool:g_Sweared, i, pos; for( i = 0; i < g_Count; ++i ) { if( ( pos = containi( said, g_Words[ i ][ 1 ] ) ) != -1 ) { g_Len = g_Words[ i ][ 0 ]; while( g_Len-- ) said[ pos++ ] = '*'; g_Sweared = true; continue; } } if( g_Sweared ) { new cmd[ 32 ], name[ 32 ]; get_user_name( id, name, sizeof name - 1 ); read_argv( 0, cmd, sizeof cmd - 1 ); copy( g_name[ id ], 31, name ); engclient_cmd( id, cmd, said ); g_Gaged[ id ] = true; g_CmdGag[ id ] = false; g_SwearGag[ id ] = true; g_GagTime[ id ] = SWEAR_GAGMINUTES; culoare_scris( 0,"!g[GAG]!t Jucatorul !g%s !t a primit gag!g 5!t minut.!g[Protectie Anti-Reclama]",name ); set_task( 60.0, "count",id+123,_,_,"b"); return PLUGIN_HANDLED; } } return PLUGIN_CONTINUE; } public client_disconnect(id) { if(g_Gaged[id]) { new Nick[32],Authid[35],userip[32] get_user_name(id,Nick,31) get_user_ip(id,userip,31); get_user_authid(id,Authid,34) culoare_scris(0, "!g[GAG]!t Jucatorul cu gag !g%s !t[!gIP !t: !g%s!t] A iesit de pe server.",Nick,userip) SaveMutedPlayers(id); remove_task( id ); } } public SaveMutedPlayers(id) { new name[32], userip[32]; get_user_name(id,name,31); get_user_ip(id,userip,31); new vaultkey[64],vaultdata[256] format(vaultkey,63,"%s[iP]-Muted",name,userip) format(vaultdata,255,"%i#%i#",g_Gaged[id],g_SwearGag[id]) nvault_set(g_vault,vaultkey,vaultdata) return PLUGIN_CONTINUE } public LoadMutedPlayers(id) { new name[32], userip[32]; get_user_name(id,name,31); get_user_ip(id,userip,31); new vaultkey[64],vaultdata[256] format(vaultkey,63,"%s[iP]-Muted",name,userip) format(vaultdata,255,"%i#%i#",g_Gaged[id],g_SwearGag[id]) nvault_get(g_vault,vaultkey,vaultdata,255) replace_all(vaultdata, 255, "#", " ") return PLUGIN_CONTINUE } stock culoare_scris(const id, const input[], any:...) { new count = 1, players[32] static msg[191] vformat(msg, 190, input, 3) replace_all(msg, 190, "!g", "^4") replace_all(msg, 190, "!y", "^1") replace_all(msg, 190, "!t", "^3") if (id) players[0] = id; else get_players(players, count, "ch") { for (new i = 0; i < count; i++) { if (is_user_connected(players)) { message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players) write_byte(players); write_string(msg); message_end(); } } } }[/sursa]
  9. Cs-3r4z3r

    Cerere modificare plugin[rezolvat!]

    nu merge nu vede adminul pff
  10. Salut! Mi-l poate modifica si mie cineva acest plugin,as dori sa se vada si pe protocol 47+48 nu numai pe pe 47. [sursa=]#include < amxmodx > #include < amxmisc > #pragma semicolon 1 #define MAX_ADMINS 999 #define MAX_GROUPS 9 #define ADMIN_LOOKUP (1<<0) #define ADMIN_NORMAL (1<<1) #define ADMIN_STEAM (1<<2) #define ADMIN_IPADDR (1<<3) #define ADMIN_NAME (1<<4) #define PLUGIN_VERSION "1.2" new g_aPassword [ MAX_ADMINS ] [ 32 ] ; new g_aName [ MAX_ADMINS ] [ 32 ] ; new g_aFlags [ MAX_ADMINS ] ; new g_aAccess [ MAX_ADMINS ] ; new g_aNum = 0 ; new g_cmdLoopback [ 16 ] ; new g_groupNames [ MAX_GROUPS ] [ ] = { "[1] Owner", "[2] Co-Owner", "[3] God", "[4] Semi-God", "[5] Moderator", "[6] Administrator", "[7] Helper", "[8] V.I.P", "[9] Slot" } ; new g_groupFlags [ MAX_GROUPS ] [ ] = { "abcdefghijklmnopqrstu", "abcdefghijlmnopqrstu", "bcdefghijmnopqrstu", "bcdefgijmnopqrstu", "bcdefgijmnopqrtu", "bcdegijmnopqtu", "bceijmnopqtu", "abi", "b" } ; new g_groupFlagsValue [ MAX_GROUPS ] ; new gCvarserverName ; new gCvarforumName ; public plugin_init ( ) { register_plugin ( "Advanced Admin Base", PLUGIN_VERSION, "aliNNNN" ) ; register_cvar ( "amx_mode", "1" ) ; register_cvar ( "amx_password_field", "_amx" ) ; register_cvar ( "amx_default_access", "z" ) ; register_cvar ( "amx_vote_time", "15" ) ; register_cvar ( "amx_vote_answers", "1" ) ; register_cvar ( "amx_vote_delay", "60" ) ; register_cvar ( "amx_last_voting", "0" ) ; register_cvar ( "amx_show_activity", "2" ) ; register_cvar ( "amx_votemap_ratio", "0.40" ) ; set_cvar_float ( "amx_last_voting", 0.0 ) ; register_concmd ( "amx_reloadadmins", "cmdReload", ADMIN_ALL, "- reload users.ini file" ) ; register_concmd ( "amx_reload", "cmdReload", ADMIN_ALL, "- reload users.ini file" ) ; register_concmd ( "admin_who", "cmdAdmins", 0 ) ; register_concmd ( "amx_who", "cmdAdmins", 0 ) ; gCvarserverName = register_cvar ( "amx_server_name", "Cs.GoGames.Ro" ) ; gCvarforumName = register_cvar ( "amx_forum_name", "wwW.gogames.ro/forum" ) ; register_clcmd ( "say", "hook_say" ) ; register_clcmd ( "say_team", "hook_say" ) ; format ( g_cmdLoopback, 15, "amxauth%c%c%c%c", random_num ( 'A', 'Z' ), random_num ( 'A', 'Z' ), random_num ( 'A', 'Z' ), random_num ( 'A', 'Z' ) ) ; register_clcmd ( g_cmdLoopback, "ackSignal" ) ; remove_user_flags ( 0, read_flags ( "z" ) ) ; new configsDir [ 64 ] ; get_configsdir ( configsDir, 63 ) ; server_cmd ( "exec %s/amxx.cfg", configsDir ) ; format ( configsDir, 63, "%s/users.ini", configsDir ) ; loadSettings ( configsDir ) ; for ( new i = 0; i < MAX_GROUPS ; i++ ) { g_groupFlagsValue [ i ] = read_flags ( g_groupFlags [ i ] ) ; } } public plugin_cfg ( ) { new configFile [ 64 ], curMap [ 32 ] ; get_configsdir ( configFile, 31 ) ; get_mapname ( curMap, 31 ) ; new len = format ( configFile, 63, "%s/maps/%s.cfg", configFile, curMap ) ; if ( file_exists ( configFile ) ) set_task ( 6.1, "delayed_load", 0, configFile, len + 1 ) ; } public delayed_load ( configFile [ ] ) { server_cmd ( "exec %s", configFile ) ; } loadSettings ( szFilename [ ] ) { if ( !file_exists ( szFilename ) ) return 0 ; new szText [ 256 ], szFlags [ 32 ], szAccess [ 32 ] ; new a, pos = 0 ; while ( g_aNum < MAX_ADMINS && read_file ( szFilename, pos++, szText, 255, a ) ) { if ( szText [ 0 ] == ';' ) continue ; if ( parse ( szText, g_aName [ g_aNum ], 31, g_aPassword [ g_aNum ], 31, szAccess, 31, szFlags, 31 ) < 2 ) continue ; g_aAccess [ g_aNum ] = read_flags ( szAccess ) ; g_aFlags [ g_aNum ] = read_flags ( szFlags ) ; ++g_aNum ; } if ( g_aNum == 1 ) { server_print ( "* Server Guard : 1 ADMIN loaded !" ) ; } else { server_print ( "* Server Guard : %d Admini incarcati !", g_aNum ) ; player_color ( 0, "^4*^3 Server Guard : users.ini fisierul a fost incarcat !" ) ; } return 1 ; } public cmdAdmins ( id ) { new players [ 32 ], inum, player, name [ 32 ], i, a ; get_players ( players, inum ) ; client_print ( id , print_console , " " ) ; for(i = 0; i < MAX_GROUPS ; i++) { for(a = 0; a < inum ; ++a) { player = players [ a ] ; get_user_name ( player, name, 31 ) ; if ( get_user_flags ( player ) == g_groupFlagsValue [ i ] ) { console_print ( id, "%s : %s", g_groupNames [ i ], name ) ; } } } client_print ( id , print_console , " " ) ; client_print ( id , print_console , " " ) ; return PLUGIN_HANDLED ; } public cmdReload ( id, level, cid ) { if ( !cmd_access(id, level, cid, 1 ) ) return PLUGIN_HANDLED ; remove_user_flags ( 0, read_flags ( "z" ) ) ; g_aNum = 0 ; admins_flush ( ) ; new filename [ 128 ] ; get_configsdir ( filename, 127 ) ; format ( filename, 63, "%s/users.ini", filename ) ; loadSettings ( filename ) ; if ( id != 0 ) { if ( g_aNum == 1 ) { client_print ( id, print_console , "* Server Guard : Privileges OK !" ) ; } else { console_print ( id, "* Server Guard : %d Admini incarcati !", g_aNum ) ; player_color ( id, "^4*^3 Server Guard : users.ini fisierul a fost incarcat !" ) ; } } new players [ 32 ], num, pv ; new name [ 32 ] ; get_players ( players, num ) ; for ( new i=0; i { pv = players [ i ] ; get_user_name ( pv, name, 31 ) ; accessUser ( pv, name ) ; } return PLUGIN_HANDLED ; } getAccess ( id, name [ ], authid [ ], ip [ ], password [ ] ) { new index = -1 ; new result = 0 ; for ( new i = 0; i < g_aNum ; ++i ) { if ( g_aFlags [ i ] & FLAG_AUTHID ) { if ( equal ( authid, g_aName [ i ] ) ) { index = i ; break ; } } else if ( g_aFlags [ i ] & FLAG_IP ) { new c = strlen ( g_aName [ i ] ) ; if ( g_aName [ i ] [ c - 1 ] == '.' ) { if ( equal ( g_aName [ i ], ip, c ) ) { index = i ; break ; } } else if ( equal ( ip, g_aName [ i ] ) ) { index = i ; break ; } } else { if ( g_aFlags [ i ] & FLAG_TAG ) { if ( containi ( name, g_aName [ i ] ) != -1 ) { index = i ; break ; } } else if ( equali ( name, g_aName [ i ] ) ) { index = i ; break ; } } } if ( index != -1 ) { if ( g_aFlags [ index ] & FLAG_NOPASS ) { result |= 8 ; new sflags [ 32 ] ; get_flags ( g_aAccess[index], sflags, 31 ) ; set_user_flags ( id, g_aAccess [ index ] ) ; } else if ( equal ( password, g_aPassword [ index ] ) ) { result |= 12; set_user_flags ( id, g_aAccess [ index ] ) ; new sflags [ 32 ] ; get_flags ( g_aAccess [ index ], sflags, 31 ) ; } else { result |= 1 ; if ( g_aFlags [ index ] & FLAG_KICK ) { result |= 2 ; } } } else if ( get_cvar_float ( "amx_mode" ) == 2.0 ) { result |= 2 ; } else { new defaccess [ 32 ] ; get_cvar_string ( "amx_default_access", defaccess, 31 ) ; if ( !strlen ( defaccess ) ) copy ( defaccess, 32, "z" ) ; new idefaccess = read_flags ( defaccess ) ; if ( idefaccess ) { result |= 8 ; set_user_flags ( id, idefaccess ) ; } } return result ; } accessUser ( id, name [ ] = "" ) { remove_user_flags ( id ) ; new userip [ 32 ], userauthid [ 32 ], password [ 32 ], passfield [ 32 ], username [ 32 ] ; get_user_ip ( id, userip, 31, 1 ) ; get_user_authid ( id, userauthid, 31 ) ; if ( name[ 0 ] ) { copy ( username, 31, name ) ; } else { get_user_name ( id, username, 31 ) ; } get_cvar_string ( "amx_password_field", passfield, 31 ) ; get_user_info ( id, passfield, password, 31 ) ; new result = getAccess ( id, username, userauthid, userip, password ) ; if ( result & 1 ) { client_cmd ( id, "echo ^"* Server Guard : Parola gresita !^"" ) ; } if ( result & 2 ) { client_cmd ( id, "%s", g_cmdLoopback ) ; return PLUGIN_HANDLED ; } if ( result & 4 ) { client_cmd ( id, "echo ^"* Server Guard : Parola acceptata !^"" ) ; } if (result & 8) { client_cmd ( id, "echo ^"* Server Guard : Privilegiile sunt OK !^"" ) ; } return PLUGIN_CONTINUE ; } public client_infochanged ( id ) { if ( !is_user_connected ( id ) || !get_cvar_num ( "amx_mode" ) ) { return PLUGIN_CONTINUE ; } new newname[ 32 ], oldname [ 32 ] ; get_user_name ( id, oldname, 31 ) ; get_user_info ( id, "name", newname, 31 ) ; if ( !equali ( newname, oldname ) ) { accessUser ( id, newname ) ; } return PLUGIN_CONTINUE ; } public ackSignal ( id ) { new setinfopass [ 50 ] ; get_cvar_string ( "amx_password_field", setinfopass, 49 ) ; server_cmd ( "kick #%d ^"Server Guard:PAROLA GRESITA * setinfo _%s PASSWORD *^"", get_user_userid ( id ), setinfopass ) ; } public client_authorized ( id ) { return get_cvar_num ( "amx_mode" ) ? accessUser ( id ) : PLUGIN_CONTINUE ; } public client_putinserver ( id ) { if ( !is_dedicated_server ( ) && id == 1 ) return get_cvar_num ( "amx_mode" ) ? accessUser ( id ) : PLUGIN_CONTINUE ; return PLUGIN_CONTINUE ; } stock player_color ( const id, const input[ ], any:... ) { new count = 1, players [ 32 ] ; static msg [ 191 ] ; vformat ( msg, 190, input, 3 ) ; replace_all ( msg, 190, ".v", "^4" ) ; /* verde */ replace_all ( msg, 190, ".g", "^1" ) ; /* galben */ replace_all ( msg, 190, ".e", "^3" ) ; /* ct=albastru | t=rosu */ replace_all ( msg, 190, ".x", "^0" ) ; /* normal-echipa */ if ( id ) players [ 0 ] = id; else get_players ( players, count, "ch" ) ; { for ( new i = 0; i < count; i++ ) { if ( is_user_connected ( players[ i ] ) ) { message_begin ( MSG_ONE_UNRELIABLE, get_user_msgid( "SayText" ), _, players[ i ] ) ; write_byte( players[ i ] ) ; write_string( msg ) ; message_end( ) ; } } } } stock get_serverName ( ) { new szserverName [ 32 ]; get_pcvar_string ( gCvarserverName, szserverName, sizeof ( szserverName ) -1 ); return szserverName ; } stock get_forumName ( ) { new szforumName [ 32 ]; get_pcvar_string ( gCvarforumName, szforumName, sizeof ( szforumName ) -1 ); return szforumName ; }[/sursa]
  11. Cs-3r4z3r

    Cerere Modificare plugin

    lam gasit pe net.
  12. Cs-3r4z3r

    Cerere Modificare plugin

    ") len += formatex(motd[len], charsmax(motd) - len, " Stopped media. This has been brought you by %s.^n", PLUGIN[NAME]) len += formatex(motd[len], charsmax(motd) - len, "You can get this plugin @ amxmodx.org.^n") len += formatex(motd[len], charsmax(motd) - len, "
  13. Cs-3r4z3r

    Cerere Modificare plugin

    Salut! Nu stiu cum sa ma exprim sa ma intelegeti,as dori mai exact ca in loc de verde sa apara cu alb sa nu mai apara cu nici,acuma sper sa ma intelegi si sa nu mai apara cum apare aici adik 1 minut ci 5 minut si sa fie schimbat in 5 minute. [GAG] Jucatorul DELUX*NO WARM! a primit gag 1 minut.[Protectie Anti-Reclama] [sursa=]#include #include #include #pragma tabsize 0 #define ACCESS ADMIN_SLAY #define WORDS 9999 #define SWEAR_GAGMINUTES 10 #define SHOW new const g_FileName[] = "automute-words.ini"; new bool:g_Gaged[ 33 ], g_GagTime[ 33 ], bool:g_SwearGag[ 33 ], bool:g_CmdGag[ 33 ], bool:g_NameChanged[33]; new g_reason[ 32 ], g_admin[ 32 ], g_name[ 33 ][ 32 ]; new g_WordsFile[ 128 ]; new g_Words[ WORDS ][ 32 ], g_Count, g_Len; new point new g_vault public plugin_init() { register_plugin("GAG-Manager", "1.0", "ExoTiQ") register_concmd( "amx_gag", "gag_cmd", ACCESS,"- " ); register_concmd( "amx_ungag", "ungag_cmd", ACCESS, "- " ); register_clcmd( "say", "check" ); register_clcmd( "say_team", "check" ); g_vault = nvault_open("ListaDisconnect"); point = get_cvar_pointer( "amx_show_activity" ); } public plugin_cfg() { static dir[ 999 ]; get_localinfo( "amxx_configsdir", dir, 998 ); formatex( g_WordsFile , 127 , "%s/%s" , dir, g_FileName ); if( !file_exists( g_WordsFile ) ) write_file( g_WordsFile, "[Gag Words]", -1 ); new Len; while( g_Count < WORDS && read_file( g_WordsFile, g_Count ,g_Words[ g_Count ][ 1 ], 30, Len ) ) { g_Words[ g_Count ][ 0 ] = Len; g_Count++; } } public client_connect(id) { LoadMutedPlayers(id) } public gag_cmd( id, level, cid ) { if( !cmd_access( id, level, cid, 4 ) ) return PLUGIN_HANDLED; new arg[ 32 ], arg2[ 6 ], reason[ 32 ]; new name[ 32 ], namet[ 32 ]; new minutes; read_argv(1, arg, 31) new player = cmd_target(id, arg, 9) if (!player) return PLUGIN_HANDLED read_argv( 1, arg, sizeof arg - 1 ); read_argv( 2, arg2, sizeof arg2 - 1 ); read_argv( 3, reason, sizeof reason - 1 ); get_user_name( id, name, 31 ); copy( g_admin, 31, name ); copy( g_reason, 31, reason ); remove_quotes( reason ); minutes = str_to_num( arg2 ); new target = cmd_target( id, arg, 10 ); if( !target) return PLUGIN_HANDLED; if( g_Gaged[ target ] ) { console_print( id, "Jucatorul deja are gag!" ); return PLUGIN_HANDLED; } get_user_name( target, namet, 31 ); copy( g_name[ target ], 31, namet ); g_CmdGag[ target ] = true; g_Gaged[target] = true; g_GagTime[ target ] = minutes; culoare_scris( 0, "!tADMIN!g %s : !tA dat gag jucatorului !g%s!t pentru !g%d !tminute. Motiv: !g%s",get_pcvar_num( point ) == 2 ? name : "", namet, minutes, reason ); set_task( 60.0, "count", target + 123, _, _, "b" ); return PLUGIN_HANDLED; } public ungag_cmd( id,level, cid ) { if( !cmd_access( id, level, cid, 2 ) ) return PLUGIN_HANDLED; new arg[ 32 ], reason[ 32 ], name[ 32 ]; read_argv( 1, arg, sizeof arg - 1 ); read_argv( 2, reason, sizeof reason - 1 ); get_user_name( id, name, sizeof name - 1 ); remove_quotes( reason ); new target = cmd_target( id, arg, 11 ); if( !target ) return PLUGIN_HANDLED; new namet[ 32 ]; get_user_name( target, namet, sizeof namet - 1 ); if( !g_Gaged[ target ] ) { console_print( id, "Jucatorul %s nu are gag.", namet ); return PLUGIN_HANDLED; } g_Gaged[ target ] = false; g_SwearGag[ target ] = false; if( g_NameChanged[ target ] ) client_cmd( target, "name ^"%s^"", g_name[ target ] ); g_NameChanged[ target ] = false; remove_task( target + 123 ); culoare_scris( 0, "!tADMIN!g %s : !tA scos gag jucatorului !g%s .",get_pcvar_num( point ) == 2 ? name : "", namet ); return PLUGIN_HANDLED; } public count( task ) { new index = task - 123; if( !is_user_connected( index ) ) return 0; g_GagTime[index] -= 1; if( g_GagTime[ index ] <= 0 ) { remove_task( index + 123 ); new name[ 32 ] get_user_name( index, name, 31 ); culoare_scris( 0, "!g[GAG]!t Jucatorul!g %s !tNu mai are gag!",name ); g_Gaged[ index ] = false; if( g_NameChanged[ index ] ) client_cmd( index, "name ^"%s^"", g_name[ index ] ); return 0; } return 1; } public check( id ) { new said[ 192 ]; read_args( said, sizeof said - 1 ); if( !strlen( said ) ) return PLUGIN_CONTINUE; if( g_Gaged[ id ] ) { if( g_CmdGag[ id ] ) { culoare_scris( id,"!g[GAG]!t Ai luat gag de la !g%s ", g_admin); culoare_scris( id,"!g[GAG]!t Timp ramas pana la ungag !g%d !tminute." , g_GagTime[ id ], g_GagTime[ id ] == 1 ? "" : "s" ); culoare_scris( id,"!g[GAG]!t Motiv: !g%s ", g_reason ); return PLUGIN_HANDLED; } else if( g_SwearGag[ id ] ) { culoare_scris( id, "!g[GAG]!t Ai primit gag de la !gserver. ") culoare_scris( id, "!g[GAG]!t Timp ramas pana la ungag !g%d !tminute. " , g_GagTime[ id ], g_GagTime[ id ] == 1 ? "" : "s" ); return PLUGIN_HANDLED; } } else { new bool:g_Sweared, i, pos; for( i = 0; i < g_Count; ++i ) { if( ( pos = containi( said, g_Words[ i ][ 1 ] ) ) != -1 ) { g_Len = g_Words[ i ][ 0 ]; while( g_Len-- ) said[ pos++ ] = '*'; g_Sweared = true; continue; } } if( g_Sweared ) { new cmd[ 32 ], name[ 32 ]; get_user_name( id, name, sizeof name - 1 ); read_argv( 0, cmd, sizeof cmd - 1 ); copy( g_name[ id ], 31, name ); engclient_cmd( id, cmd, said ); g_Gaged[ id ] = true; g_CmdGag[ id ] = false; g_SwearGag[ id ] = true; g_GagTime[ id ] = SWEAR_GAGMINUTES; culoare_scris( 0,"!g[GAG]!t Jucatorul !g%s !t a primit gag!g 1!t minut.!g[Protectie Anti-Reclama]",name ); set_task( 60.0, "count",id+123,_,_,"b"); return PLUGIN_HANDLED; } } return PLUGIN_CONTINUE; } public client_disconnect(id) { if(g_Gaged[id]) { new Nick[32],Authid[35],userip[32] get_user_name(id,Nick,31) get_user_ip(id,userip,31); get_user_authid(id,Authid,34) culoare_scris(0, "!g[GAG]!t Jucatorul cu gag !g%s !t[!gIP !t: !g%s!t] A iesit de pe server.",Nick,userip) SaveMutedPlayers(id); remove_task( id ); } } public SaveMutedPlayers(id) { new name[32], userip[32]; get_user_name(id,name,31); get_user_ip(id,userip,31); new vaultkey[64],vaultdata[256] format(vaultkey,63,"%s[iP]-Muted",name,userip) format(vaultdata,255,"%i#%i#",g_Gaged[id],g_SwearGag[id]) nvault_set(g_vault,vaultkey,vaultdata) return PLUGIN_CONTINUE } public LoadMutedPlayers(id) { new name[32], userip[32]; get_user_name(id,name,31); get_user_ip(id,userip,31); new vaultkey[64],vaultdata[256] format(vaultkey,63,"%s[iP]-Muted",name,userip) format(vaultdata,255,"%i#%i#",g_Gaged[id],g_SwearGag[id]) nvault_get(g_vault,vaultkey,vaultdata,255) replace_all(vaultdata, 255, "#", " ") return PLUGIN_CONTINUE } stock culoare_scris(const id, const input[], any:...) { new count = 1, players[32] static msg[191] vformat(msg, 190, input, 3) replace_all(msg, 190, "!g", "^4") replace_all(msg, 190, "!y", "^1") replace_all(msg, 190, "!t", "^3") if (id) players[0] = id; else get_players(players, count, "ch") { for (new i = 0; i < count; i++) { if (is_user_connected(players)) { message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players) write_byte(players); write_string(msg); message_end(); } } } }[/sursa]
  14. Cs-3r4z3r

    Cerere Modificare plugin

    am vrut sa spun ca vreau sa apara doar cu rosu si albastru,nu vreau si cu alte culori
×