Jump to content

Search the Community

Showing results for tags 'plugin cs 1.6'.



More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • Administrativ
    • Forum
    • Zona utilizatorilor
    • Afiliere
    • OldGods - It's fun to be a GOD! ~ Steam Group
    • OldGods - It's fun to be a GOD! ~ GameTracker.com Group
  • Serverele comunitatii
    • TS.OLDGODS.RO
    • CS.OLDGODS.RO # CLASIC
    • RESPAWN.OLDGODS.RO # RESPAWN
    • Servere MIX Counter-Strike 1.6
    • MTA.OLDGODS.RO - Multi Theft Auto: San Andreas
  • Echipe OldGods
    • Dota 2 - EVENING DESTROYERS
  • General
    • Design zone
    • Social
    • Gaming, Multimedia & Tehnologie
    • Resurse jocuri
  • Arhiva
    • Arhiva generala

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


About Me


Server preferat

Found 8 results

  1. 1. Nume plugin: Super Map Choser 2. Autor & Versiune: istonic / 3.0 3. Comenzi: - 4. Cvar: 5. Alte detalii: Acest plugin va da vot hartii in ultima runda, mai exact in ultima runda a hartii (cand expira timpul hartii) se va face ecranul negru, jucatorii vor fi blocati si fiecare trebuie sa aleaga harta urmatoare. Pe mijlocul ecranului apare un mesaj HUD cu nr. de vot - harta. ATENTIE: ca plugin-ul sa functioneze corect, trebuie sa dezactivati plugin-ul "mapchoser.amxx" care vine default in server, la fel si orice alt plugin de vot al hartilor sau prelungire de runda. 6. Link download: #include <amxmodx> #include <colorchat> new const PLUGIN[] = "Super Mapchooser" new const VERSION[] = "3.0" new const AUTHOR[] = "Prayer/Safety1st" new g_teamScore[2] new nextmap, vote_answers, maxspeed new mp_timelimit, mp_winlimit, mp_maxrounds, mp_roundtime new extendmapmax_pcvar, extendmapstep_pcvar, votetime_pcvar, votemaps_pcvar new result_red_pcvar, result_green_pcvar, result_blue_pcvar #define TASK_PLUGIN_ID 44747477 #define TASK_SCREEN_ID 979699 #define TASK_RESULT_ID 12111 const HudLen = 512 new msg[128] new Array:g_mapName new g_mapNums new g_saveids[10] new g_voteCount[10] new g_nextName[10] new g_lastMap[32] new g_currentMap[32] new g_mapVoteNum new g_votemaps new g_maxspeed = 320 new Float:f_timelimit = 0.0 // we want to restore timelimit only if we touched it new bool:willbevote = false // there will be a vote new bool:voteStarted = false // there is vote in progress new bool:forceBlock = true // block player's selections if vote is canceled new bool:hasExtend = false // map was extended new bool:lastRound = false // map changing will be at the current round end new bool:forceChange = true // we should force map end in case if it is not round-based limit coming soon new bool:hasBlind[33] = { false, ... } new g_msgScreenFade new g_PlayersVoted = 0 new g_PlayersNum = 0 new g_result_red, g_result_green, g_result_blue public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_cvar("super_mapchooser",VERSION,FCVAR_SERVER|FCVAR_SPONLY|FCVAR_UNLOGGED) register_dictionary_colored("super_mapchooser.txt") extendmapmax_pcvar = register_cvar("amx_extendmap_max", "90")//Максимальное количество минут. Когда несколько раз продлевается карта - это значение будет максимальным в timelimit'е extendmapstep_pcvar = register_cvar("amx_extendmap_step", "15")//На сколько минут продлевать карту, если проголосовали за ее продление. register_event("HLTV", "Event_NewRound", "a", "1=0", "2=0") register_event("TextMsg", "Event_RestartRound", "a", "2&#Game_C", "2&#Game_w") register_event("ScreenFade", "Event_ScreenFade", "be") register_event("TeamScore", "team_score", "a") register_logevent("Event_RoundEnd", 2, "0=World triggered","1=Round_End") votetime_pcvar = register_cvar("mapchooser_votetime", "15") //Сколько времени в секундах должно идти голосование votemaps_pcvar = register_cvar("mapchooser_votemaps", "5") //Сколько карт выводить на голосование помимо текущей карты // Каким цветом показывать результаты голосования. Формат RGB result_red_pcvar = register_cvar("mapchooser_result_red", "0") //Красный result_green_pcvar = register_cvar("mapchooser_result_green", "255") //Зеленый result_blue_pcvar = register_cvar("mapchooser_result_blue", "100") //Синий g_msgScreenFade = get_user_msgid("ScreenFade") set_task(8.0, "taskListening", TASK_PLUGIN_ID, "", 0, "b") } public plugin_cfg() { nextmap = get_cvar_pointer("amx_nextmap") vote_answers = get_cvar_pointer("amx_vote_answers") maxspeed = get_cvar_pointer("sv_maxspeed") mp_timelimit = get_cvar_pointer("mp_timelimit") mp_winlimit = get_cvar_pointer("mp_winlimit") mp_maxrounds = get_cvar_pointer("mp_maxrounds") mp_roundtime = get_cvar_pointer("mp_roundtime") g_votemaps = get_pcvar_num(votemaps_pcvar) if(g_votemaps > 8) g_votemaps = 8 else if(g_votemaps < 1) g_votemaps = 1 register_menucmd(register_menuid("superMapChooserMenu"), (-1^(-1<<(g_votemaps + 1))), "countVote") g_mapName = ArrayCreate(32) get_localinfo("lastMap", g_lastMap, sizeof g_lastMap -1) set_localinfo("lastMap", "") new maps_ini_file[64] get_localinfo("amxx_configsdir", maps_ini_file, sizeof maps_ini_file -1) format(maps_ini_file, sizeof maps_ini_file -1, "%s/maps.ini", maps_ini_file) if(!file_exists(maps_ini_file)) get_cvar_string("mapcyclefile", maps_ini_file, sizeof maps_ini_file -1) if(loadSettings(maps_ini_file)) Reset() g_maxspeed = get_pcvar_num(maxspeed) get_mapname(g_currentMap, sizeof g_currentMap -1) } public client_disconnect(id) { remove_task(id+TASK_SCREEN_ID) remove_task(id+TASK_RESULT_ID) hasBlind[id] = false } public Event_RestartRound() Reset() public Event_RoundEnd() { if(lastRound && forceChange) set_task(4.5,"ForceChangeMap") } public ForceChangeMap() { // trick: decrease mp_timelimit value to force map change. 0.3 min was carefully chosen by experiments set_pcvar_float(mp_timelimit, get_gametime() / 60.0 - 0.3) } public Reset() { g_PlayersVoted = 0 g_PlayersNum = 0 if(voteStarted) { voteStarted = false forceBlock = true remove_task(TASK_PLUGIN_ID) // remove 'checkVotes' task if(!hasExtend) { formatex(msg, 127, "%L", LANG_PLAYER, "INTERRUPTED") ColorChat(0, GREEN, msg) } else hasExtend = false } if(willbevote) { set_task(8.0, "taskListening", TASK_PLUGIN_ID, "", 0, "b") if(f_timelimit > 0.0) set_pcvar_float(mp_timelimit, f_timelimit) } willbevote = false lastRound = false forceChange = true } public PauseGame() { new players[32], pid get_players(players, g_PlayersNum) for(new i=0;i<g_PlayersNum;i++) { pid = players[i] hasBlind[pid] = true message_begin(MSG_ONE, g_msgScreenFade, _, pid) write_short(1<<12) // Duration write_short(1<<9) // Hold time write_short(1<<0) // Fade type write_byte(0) // Red write_byte(0) // Green write_byte(0) // Blue write_byte(255) // Alpha message_end() set_task(1.0, "cmdFadeScreen", pid+TASK_SCREEN_ID, "", 0, "b") } set_pcvar_num(maxspeed, 0) } public ContinueGame() { new players[32], num, pid get_players(players, num) for(new i=0;i<num;i++) { pid = players[i] hasBlind[pid] = false remove_task(pid+TASK_SCREEN_ID) remove_task(pid+TASK_RESULT_ID) message_begin(MSG_ONE, g_msgScreenFade, _, pid) write_short(1<<0) write_short(1<<0) write_short(1<<0) write_byte(0) write_byte(0) write_byte(0) write_byte(0) message_end() } set_pcvar_num(maxspeed, g_maxspeed) } public taskListening() { new winlimit = get_pcvar_num(mp_winlimit) if(winlimit) { new c = winlimit - 2 if(!((c > g_teamScore[0]) && (c > g_teamScore[1]))) { forceChange = false willbevote = true } } new maxrounds = get_pcvar_num(mp_maxrounds) if(maxrounds) { if(!((maxrounds - 2) > (g_teamScore[0] + g_teamScore[1]))) { forceChange = false willbevote = true } } new Float:f_timeleft new Float:f_diff new Float:f_roundtime f_timeleft = float(get_timeleft()) if (f_timeleft) { f_roundtime = get_pcvar_float(mp_roundtime) * 60.0 f_diff = f_roundtime - f_timeleft + get_pcvar_float(votetime_pcvar) + 15.0 // we need additional 10 seconds upper to don't get countdown voice if(!(f_timeleft < 1.0 || f_timeleft > f_diff)) willbevote = true } if(!willbevote) return remove_task(TASK_PLUGIN_ID) // remove 'taskListening' task formatex(msg, 127, "%L", LANG_PLAYER, "VOTE_NEXT_ROUND") ColorChat(0, GREEN, msg) // increase timelimit if it might elapse earlier than needed if (f_timeleft) { f_timelimit = get_pcvar_float(mp_timelimit) // save current timelimit set_pcvar_float(mp_timelimit, f_timelimit + f_diff / 60.0) } } public Event_NewRound() { if(willbevote && !lastRound) { forceBlock = false hasExtend = false g_result_red = get_pcvar_num(result_red_pcvar) g_result_green = get_pcvar_num(result_green_pcvar) g_result_blue = get_pcvar_num(result_blue_pcvar) cmdVoteNextmap() } } public cmdVoteNextmap() { new mkeys = ((1<<g_votemaps) + 1), menu[HudLen], a new pos = format(menu, HudLen -1, " \r%L:^n^n", LANG_PLAYER, "VOTE_TITLE") new dmax = (g_mapNums > g_votemaps) ? g_votemaps : g_mapNums new unki = 0 for(g_mapVoteNum = 0; g_mapVoteNum < dmax; g_mapVoteNum++) { a = random_num(0, g_mapNums -1) while(isInMenu(a)) { if(++a >= g_mapNums) { a = 0 } } g_nextName[g_mapVoteNum] = a new map[32] ArrayGetString(g_mapName, a, map, sizeof map -1) pos += format(menu[pos], HudLen -1, " \y%d.\w %s^n", g_mapVoteNum + 1, map) g_saveids[unki] = a unki++ mkeys |= (1<<g_mapVoteNum) g_voteCount[g_mapVoteNum] = 0 } g_voteCount[g_votemaps] = 0 g_voteCount[g_votemaps + 1] = 0 new winlimit = get_pcvar_num(mp_winlimit) new maxrounds = get_pcvar_num(mp_maxrounds) if((winlimit + maxrounds) == 0 && f_timelimit < get_pcvar_float(extendmapmax_pcvar)) { pos += format(menu[pos], HudLen -1, " \y%d.\w %s \y[%L]", g_votemaps + 1, g_currentMap, LANG_PLAYER, "PROLONG") mkeys |= (1<<g_votemaps) } show_menu(0, mkeys, menu, get_pcvar_num(votetime_pcvar), "superMapChooserMenu") formatex(msg, 127, "%L", LANG_PLAYER, "VOTE_STARTED") ColorChat(0, GREEN, msg) client_cmd(0, "spk gman/gman_choose2") set_task(get_pcvar_float(votetime_pcvar), "checkVotes", TASK_PLUGIN_ID) PauseGame() voteStarted = true log_amx("Super Vote: Voting for the nextmap started") } public checkVotes() { voteStarted = false new bolt = 0 for(new a = 0; a < g_mapVoteNum; a++) { if(g_voteCount[bolt] < g_voteCount[a]) bolt = a } //clear channel #2 set_hudmessage(.channel=2) show_hudmessage(0, "") set_hudmessage(255, 127, 0, -1.0, 0.42, 2, 0.1, 10.0, 0.05, 1.0, 2) if((g_voteCount[g_votemaps] > g_voteCount[bolt]) && (g_voteCount[g_votemaps] > g_voteCount[g_votemaps + 1])) { new Float:steptime = get_pcvar_float(extendmapstep_pcvar) f_timelimit = f_timelimit + steptime formatex(msg, 127, "%L", LANG_PLAYER, "MAP_EXTENDING", steptime) ColorChat(0, TEAM_COLOR, msg) show_hudmessage(0, "%L", LANG_PLAYER, "MAP_EXTENDING_HUD", steptime) log_amx("Super Vote: Voting for the nextmap finished. Map %s will be extended to next %.0f minutes", g_currentMap, steptime) hasExtend = true Reset() ContinueGame() return } new smap[32] if(g_voteCount[bolt] && (g_voteCount[g_votemaps + 1] <= g_voteCount[bolt])) { ArrayGetString(g_mapName, g_nextName[bolt], smap, sizeof smap -1) set_pcvar_string(nextmap, smap) } else get_pcvar_string(nextmap, smap, sizeof smap -1) // get nextmap name in case if no one voted formatex(msg, 127, "%L", LANG_PLAYER, "NEXT_MAP_CHOSEN", smap) ColorChat(0, TEAM_COLOR, msg) show_hudmessage(0, "%L", LANG_PLAYER, "NEXT_MAP_CHOSEN_HUD", smap) if(forceChange) { formatex(msg, 127, "%L", LANG_PLAYER, "LAST_ROUND") ColorChat(0, TEAM_COLOR, msg) set_hudmessage(255, 0, 0, -1.0, 0.58, 2, 0.1, 10.0, 0.05, 1.0, 1) show_hudmessage(0, "%L", LANG_PLAYER, "LAST_ROUND_HUD") } new players[32], num, pid get_players(players, num) for(new i=0;i<num;i++) { pid = players[i] remove_task(pid+TASK_RESULT_ID) } log_amx("Super Vote: Voting for the nextmap finished. The nextmap will be %s", smap) lastRound = true // increase timelimit if it might elapse earlier than current round new Float:f_timeleft = float(get_timeleft()) if(f_timeleft) // there is timelimit for map definately set_pcvar_float(mp_timelimit, get_gametime() / 60.0 + get_pcvar_float(mp_roundtime)) ContinueGame() } public countVote(id, key) { if(!voteStarted && forceBlock) return PLUGIN_HANDLED if(get_pcvar_float(vote_answers)) { new name[32] get_user_name(id, name, sizeof name -1) if(key == g_votemaps) { formatex(msg, 127, "%L", LANG_PLAYER, "VOTED_EXTEND", name) ColorChat(0, DontChange, msg) } else if(key < g_votemaps) { new map[32] ArrayGetString(g_mapName, g_nextName[key], map, sizeof map -1) formatex(msg, 127, "%L", LANG_PLAYER, "VOTED", name, map) ColorChat(0, DontChange, msg) } cmdShowResults(id+TASK_RESULT_ID) set_task(0.8, "cmdShowResults", id+TASK_RESULT_ID, "", 0, "b") } client_cmd(id, "spk UI/buttonclickrelease") g_voteCount[key]++ g_PlayersVoted++ return PLUGIN_HANDLED } public cmdShowResults(pid) { static id id = pid-TASK_RESULT_ID if(is_user_connected(id)) { static i, len, message[HudLen] len = format(message, sizeof message -1, "%L^n^n", LANG_PLAYER, "VOTE_RESULTS") for(i=0;i<g_votemaps;i++) { new map[32] ArrayGetString(g_mapName, g_saveids[i], map, sizeof map -1) len += format(message[len], HudLen -1, "[%d] | %s^n", g_voteCount[i], map) } len += format(message[len], HudLen -1, "[%d] | %s [%L]^n^n", g_voteCount[i], g_currentMap, LANG_PLAYER, "PROLONGED") len += format(message[len], HudLen -1, "%L", LANG_PLAYER, "VOTE_TOTAL", g_PlayersVoted, g_PlayersNum) set_hudmessage(g_result_red, g_result_green, g_result_blue, 0.36, 0.3, 0, 1.0, 4.0, 0.1, 0.2, 2) show_hudmessage(id, message) } } public Event_ScreenFade(id) { if(hasBlind[id]) { set_task(0.6, "cmdFadeScreen", id+TASK_SCREEN_ID) } } public cmdFadeScreen(pid) { new id = pid-TASK_SCREEN_ID if(is_user_connected(id)) { message_begin(MSG_ONE, g_msgScreenFade, _, id) write_short(1<<0) // Duration write_short(1<<0) // Hold time write_short(1<<2) // Fade type write_byte(0) // Red write_byte(0) // Green write_byte(0) // Blue write_byte(255) // Alpha message_end() } } public plugin_end() { new current_map[32] set_pcvar_num(maxspeed, g_maxspeed) get_mapname(current_map, sizeof current_map -1) set_localinfo("lastMap", current_map) } stock bool:ValidMap(mapname[]) { if(is_map_valid(mapname)) { return true } new len = strlen(mapname) -4 if(len < 0) { return false } if(equali(mapname[len], ".bsp")) { mapname[len] = '^0' if(is_map_valid(mapname)) { return true } } return false } loadSettings(filename[]) { if(!file_exists(filename)) return 0 new currentMap[32], szText[32], buff[256] get_mapname(currentMap, sizeof currentMap -1) new fp = fopen(filename, "r") while(!feof(fp)) { buff[0] = '^0' fgets(fp, buff, sizeof buff -1) parse(buff, szText, sizeof szText -1) if((szText[0] != ';') && ValidMap(szText) && !equali(szText, g_lastMap) && !equali(szText, currentMap)) { ArrayPushString(g_mapName, szText) g_mapNums++ } } fclose(fp) return g_mapNums } bool:isInMenu(id) { for(new a = 0; a < g_mapVoteNum; a++) { if(id == g_nextName[a]) { return true } } return false } //From the AMXX nextmap base file public team_score() { new team[2] read_data(1,team,1) g_teamScore[(team[0]=='C') ? 0 : 1] = read_data(2) } /* Описание: Super MapChooser - альтернатива стандартному плагину mapchooser.amxx В начале последнего раунда экран затухает, игроки останавливаются и предлагается выбрать карту. После выбора карты появляются результаты голосования - сколько игроков проголосовали, за какую карту и кол-во проголосовавших. По истечению времени голосования написано, какая карта будет следующей. Карта меняется в конце раунда. Переменные (уже прописаны в amxx.cfg): На сколько минут продлевать карту, если проголосовали за ее продление. amx_extendmap_step "15.0" Максимальное количество минут. Когда несколько раз продлевается карта - это значение будет максимальным в timelimit'е. amx_extendmap_max "90.0" Переменные (можно прописать в amxx.cfg): Сколько времени в секундах должно идти голосование. (можно изменять в игре до голосования) mapchooser_votetime "15" Сколько карт выводить на голосование не считая карты, которую продлевают в голосовании. (можно изменять в игре - активируется в след. карте) mapchooser_votemaps "5" Минимальное значение 1, максимальное 8 Каким цветом показывать результаты голосования. (можно изменять в игре до голосования) mapchooser_result_red "255" mapchooser_result_green "255" mapchooser_result_blue "255" Установка плагина: 1) Плагин super_mapchooser.amxx кладем в папку с плагинами - addons/amxmodx/plugins 2) Открываем файл addons/amxmodx/configs/plugins.ini 3) Находим там строчку: mapchooser.amxx ; allows to vote for next map 4) Вместо нее вставляем строчку: super_mapchooser.amxx 5) Сохраняем изменения 6) Рестартим сервер... Бонусы: 1) Цветные сообщения. */ super_mapchoser.txt (se adauga in folderul lang) 7. Poze: Sursa: AlliedMods
  2. 1. Nume plugin: Welcome Message (hud / dhud) + rank (in stilul celor zombie) 2. Autor & Versiune: gasit pe internet / 1.0.0 3. Comenzi: - 4. Cvar: - 5. Alte detalii: Acest plugin va afisa un mesaj in hud sau dhud (in functie de ce descarcati) fiecarui jucator care se conecteaza pe server, va fi afisat un mesaj de bun venit si rank-ul acestuia (in stilul serverelor de zombie). 6. Link download: DHUD (scris mare si gros) #include < amxmodx > #include < csstats > #include < dhudmessage > #define PLUGIN_VERSION "1.0.0" new gHostName; public plugin_init( ) { register_plugin( "Connect Info Hud", "1.0.1", "Hattrick" ); gHostName = get_cvar_pointer( "hostname" ); } public client_putinserver( id ) { if( is_user_bot( id ) ) return; set_task( 10.0, "go_info", id ); } public go_info( id ) { new s_HostName[ 64 ]; get_pcvar_string( gHostName, s_HostName, charsmax( s_HostName ) ); static s_Name [ 32 ]; get_user_name( id, s_Name, charsmax ( s_Name ) ); static stats[ 8 ], body[ 8 ]; new s_RankPos = get_user_stats ( id, stats, body ); new s_MaxRank = get_statsnum ( ); set_dhudmessage( 250, 150, 0, 0.10, 0.24, 0, 7.0, 10.0, 0.1, 0.1 ); show_dhudmessage( id, "Welcome, %s^nWe hope you enjoy you`ll stay here!^n^n%s^n^nYou rank is %d from %d", s_Name, s_HostName, s_RankPos, s_MaxRank ); } HUD (scris normal, subtire) #include < amxmodx > #include < csstats > #define PLUGIN_VERSION "1.0.0" new gHostName; public plugin_init( ) { register_plugin( "Connect Info Hud", "1.0.1", "Hattrick" ); gHostName = get_cvar_pointer( "hostname" ); } public client_putinserver( id ) { if( is_user_bot( id ) ) return; set_task( 10.0, "go_info", id ); } public go_info( id ) { new s_HostName[ 64 ]; get_pcvar_string( gHostName, s_HostName, charsmax( s_HostName ) ); static s_Name [ 32 ]; get_user_name( id, s_Name, charsmax ( s_Name ) ); static stats[ 8 ], body[ 8 ]; new s_RankPos = get_user_stats ( id, stats, body ); new s_MaxRank = get_statsnum ( ); set_hudmessage( 250, 150, 0, 0.10, 0.24, 0, 7.0, 10.0, 0.1, 0.1 ); show_hudmessage( id, "Welcome, %s^nWe hope you enjoy you`ll stay here!^n^n%s^n^nYou rank is %d from %d", s_Name, s_HostName, s_RankPos, s_MaxRank ); } 7. Poze: (hud) (dhud)
  3. Darian433

    1. Nume plugin: Control HE Damage(s)2. Autor & Versiune: YONTU / 1.13. Comenzi: -4. Cvar: 5. Alte detalii: Cu ajutorul acestui plugin puteti controla cat DMG (daune) provoaca grenada HE, mai exact puteti controla prin cvar-uri cat DMG provoaca grenada (0-100).6. Link download: #include <amxmodx> #include <hamsandwich> #define DMG_HEGRENADE (1<<24) #define PLUGIN_NAME "Control HE Dmg(s)" #define PLUGIN_AUTHORS "YONTU" #define PLUGIN_VERSION "1.1" new cvar_dmg, cvar_no_attacker_dmg; public plugin_init() { register_plugin(PLUGIN_NAME, PLUGIN_VERSION, PLUGIN_AUTHORS); cvar_dmg = register_cvar("he_dmg", "0.2"); cvar_no_attacker_dmg = register_cvar("no_he_dmg_attacker", "1"); RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage"); } public fw_TakeDamage(victim, inflictor, attacker, Float:fDamage, iDmgType) { if(!(iDmgType & DMG_HEGRENADE)) return HAM_HANDLED; if(victim == attacker) { if(!get_pcvar_num(cvar_no_attacker_dmg)) return HAM_IGNORED; return HAM_SUPERCEDE; } else { if(is_user_alive(victim) && get_user_team(victim) != get_user_team(attacker)) { fDamage *= get_pcvar_float(cvar_dmg); SetHamParamFloat(4, fDamage); return HAM_HANDLED; } } return HAM_IGNORED; } 7. Poze: -Sursa: extreamCS
  4. Darian433

    1. Nume plugin: VIP Clasic 2. Autor & Versiune: Shadows Adi / 1.2 3. Comenzi: 4. Cvar: 5. Alte detalii: Acest plugin adauga pe server VIP, are un meniu de arme, VIP-ii apar in TAB, meniul de arme se deschide automat la inceputul fiecarei runde. Este customizabil prin cvar-urile de mai sus. 6. Link download: Click aici SMA 7. Poze: Sursa: extreamCS
  5. Darian433

    1. Nume plugin: ResetScore v.3.3 2. Autor & Versiune: Arion / 3.3 3. Comenzi: Publice in chat: /rs sau /resetscore - iti resetezi singur scorul. Consola (doar admini): amx_resetscore - reseteaza scorul tuturor jucatorilor aflati pe server. 4. Cvar: 5. Alte detalii: Cu ajutorul acestui plugin jucatorii vor putea sa-si reseteze scorul folosind comenzile de mai sus, ori chiar adminii cu flag-ul A (imunitate) pot reseta scorul tuturor jucatorilor aflati pe server. 6. Link download: #include <amxmodx> #include <cstrike> #include <fun> #pragma semicolon 1 #define ADMIN_ACCESS ADMIN_IMMUNITY enum Color { NORMAL = 1, GREEN, TEAM_COLOR, GREY, RED, BLUE}; new TeamName[][] = { "", "TERRORIST", "CT", "SPECTATOR" }; new cvar_chat, cvar_on, cvar_dead, cvar_tag, cvar_time, g_Tag; public plugin_init() { register_plugin("Reset score", "3.2", "Ex3cuTioN"); register_clcmd("say /resetscore", "cmdReset"); register_clcmd("say /rs", "cmdReset"); register_clcmd("say_team /resetscore", "cmdReset"); register_clcmd("resetscore", "cmdReset"); register_concmd("amx_resetscore", "conReset", ADMIN_ACCESS, "- reseteaza scorul tuturor"); cvar_chat = register_cvar("amx_reset_chat", "1"); cvar_on = register_cvar("amx_reset_plugin", "1"); cvar_dead = register_cvar("amx_reset_dead","1"); cvar_tag = register_cvar("amx_reset_tag","ResetScore"); cvar_time = register_cvar("amx_reset_time","60"); if(get_pcvar_num(cvar_chat) == 1) { new Float:timp = get_pcvar_float(cvar_time); set_task(timp, "chatmsgshow", _, _, _, "b", 0); } new tag[32]; g_Tag = get_pcvar_string(cvar_tag, tag, 31); } public cmdReset(id) { if(get_pcvar_num(cvar_on) == 0) { ColorChat(id, GREEN,"[%s]^x01 Pluginul este dezactivat", g_Tag); return PLUGIN_HANDLED; } if(get_pcvar_num(cvar_dead) == 0 && !is_user_alive(id)) { ColorChat(id, GREEN, "[%s]^x01 Poti folosii comanda numai atunci cand esti viu.", g_Tag); return PLUGIN_HANDLED; } new frags = get_user_frags(id); new deaths = get_user_deaths(id); if(frags == 0 && deaths == 0) ColorChat(id, GREEN, "[%s]^x01 Scorul tau este deja^x04 0",g_Tag); else { for(new i = 0; i < 2; i++) { cs_set_user_deaths(id, 0); set_user_frags(id, 0); } new name[32]; get_user_name(id, name, 31); ColorChat(id, GREEN, "[%s]^x01 Scorul tau s-a resetat.", g_Tag); ColorChat(0, GREEN,"[%s]^x01 si-a resetat scorul.", name); } return PLUGIN_HANDLED; } public conReset(id) { if(get_user_flags(id)&ADMIN_ACCESS) { new players[32], num, player; get_players(players, num, "c"); for(new i = 0; i < num; i++) { player = players; if(get_user_frags(player) != 0 && get_user_deaths(player) != 0) { cs_set_user_deaths(player, 0); set_user_frags(player, 0); } } new name[32]; get_user_name(id, name, 31); ColorChat(0, GREEN, "[%s]^x03 %s^x01 a resetat scorul tuturor.", g_Tag, name); } else console_print(id, "Nu ai acces la aceasta comanda."); return PLUGIN_HANDLED; } public chatmsgshow(id) ColorChat(id, GREEN, "[%s]^x01 Daca vrei sa iti resetezi scorul, foloseste comanda^x04 /resetscore^x01 sau^x04 /rs !", g_Tag); ColorChat(id, Color:type, const msg[], {Float,Sql,Result,_}:...) { if(!get_playersnum()) return; new message[256]; switch(type) { case NORMAL: { message[0] = 0x01; } case GREEN: { message[0] = 0x04; } default: { message[0] = 0x03; } } vformat(message[1], 251, msg, 4); // Make sure message is not longer than 192 character. Will crash the server. message[192] = '^0'; new team, ColorChange, index, MSG_Type; if(id) { MSG_Type = MSG_ONE; index = id; } else { index = FindPlayer(); MSG_Type = MSG_ALL; } team = get_user_team(index); ColorChange = ColorSelection(index, MSG_Type, type); ShowColorMessage(index, MSG_Type, message); if(ColorChange) Team_Info(index, MSG_Type, TeamName[team]); } ShowColorMessage(id, type, message[]) { static bool:saytext_used; static get_user_msgid_saytext; if(!saytext_used) { get_user_msgid_saytext = get_user_msgid("SayText"); saytext_used = true; } message_begin(type, get_user_msgid_saytext, _, id); write_byte(id); write_string(message); message_end(); } Team_Info(id, type, team[]) { static bool:teaminfo_used; static get_user_msgid_teaminfo; if(!teaminfo_used) { get_user_msgid_teaminfo = get_user_msgid("TeamInfo"); teaminfo_used = true; } message_begin(type, get_user_msgid_teaminfo, _, id); write_byte(id); write_string(team); message_end(); return 1; } ColorSelection(index, type, Color:Type) { switch(Type) { case RED: { return Team_Info(index, type, TeamName[1]); } case BLUE: { return Team_Info(index, type, TeamName[2]); } case GREY: { return Team_Info(index, type, TeamName[0]); } } return 0; } FindPlayer() { new i = -1; while(i <= get_maxplayers()) { if(is_user_connected(++i)) return i; } return -1; } 7. Poze: Sursa: extreamCS
  6. Darian433

    1. Nume plugin: Bomb Countdown HUD Timer 2. Autor & Versiune: Samurai16 / 0.2 3. Comenzi: - 4. Cvar: - 5. Alte detalii: Acest plugin va afisat in HUD (pe ecran) un mesaj de genul "C4: timp" care va spune in cat timp explodeaza bomba. 6. Link download: /* Bomb Countdown HUD Timer v0.2 by SAMURAI * Plugin Details With this plugin enabled, you can see an colored Hud Message with the c4 time left, until explode Remeber : if until explode remains less than 8 seconds, hudmessage color will be red, if > 7 will be yellow and > 13 will be green. * Required Modules: - CSX * Credits: - Emp` for various indicates - Alka for full tests * Changelog - Fixed Events problems - Pcvars - Fixed any bug on plugin */ #include <amxmodx> #include <csx> #define PLUGIN "Bomb Countdown HUD Timer" #define VERSION "0.2" #define AUTHOR "SAMURAI" new g_c4timer, pointnum; new bool:b_planted = false; new g_msgsync; public plugin_init() { register_plugin(PLUGIN,VERSION,AUTHOR); pointnum = get_cvar_pointer("mp_c4timer"); register_logevent("newRound", 2, "1=Round_Start"); register_logevent("endRound", 2, "1=Round_End"); register_logevent("endRound", 2, "1&Restart_Round_"); g_msgsync = CreateHudSyncObj(); } public newRound() { g_c4timer = -1; remove_task(652450); b_planted = false; } public endRound() { g_c4timer = -1; remove_task(652450); } public bomb_planted() { b_planted = true; g_c4timer = get_pcvar_num(pointnum); dispTime() set_task(1.0, "dispTime", 652450, "", 0, "b"); } public bomb_defused() { if(b_planted) { remove_task(652450); b_planted = false; } } public bomb_explode() { if(b_planted) { remove_task(652450); b_planted = false; } } public dispTime() { if(!b_planted) { remove_task(652450); return; } if(g_c4timer >= 0) { if(g_c4timer > 13) set_hudmessage(0, 150, 0, -1.0, 0.80, 0, 1.0, 1.0, 0.01, 0.01, -1); else if(g_c4timer > 7) set_hudmessage(150, 150, 0, -1.0, 0.80, 0, 1.0, 1.0, 0.01, 0.01, -1); else set_hudmessage(150, 0, 0, -1.0, 0.80, 0, 1.0, 1.0, 0.01, 0.01, -1); ShowSyncHudMsg(0, g_msgsync, "C4: %d", g_c4timer); --g_c4timer; } } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par } */ 7. Poze: Sursa: AlliedMods
  7. Darian433

    1. Nume plugin: No fall Damage 2. Autor & Versiune: v3x / 0.2 3. Comenzi: - 4. Cvar: 5. Alte detalii: Cu ajutorul acestui plugin jucatorii nu vor mai primii DMG cand cad de la inaltimi mari. 6. Link download: #include <amxmodx> #include <engine> #define FALL_VELOCITY 350.0 public plugin_init() { register_plugin("No fall damage", "0.2", "v3x"); if(!cvar_exists("mp_falldamage")) { register_cvar("mp_falldamage", "0"); } } new bool:falling[33]; public client_PreThink(id) { if(get_cvar_num("mp_falldamage") == 0 && is_user_alive(id) && is_user_connected(id)) { if(entity_get_float(id, EV_FL_flFallVelocity) >= FALL_VELOCITY) { falling[id] = true; } else { falling[id] = false; } } } public client_PostThink(id) { if(get_cvar_num("mp_falldamage") == 0 && is_user_alive(id) && is_user_connected(id)) { if(falling[id]) { entity_set_int(id, EV_INT_watertype, -3); } } } 7. Poze: - Sursa: AlliedMods
  8. Darian433

    1. Nume plugin: Eliminate 2. Autor & Versiune: HadesK 3. Comenzi: amx_eliminate 4. Cvar: - 5. Alte detalii: Este un amx_destroy modificat, acesta incluzand si banip + steamid. 6. Link descarcare: Click aici 7. Poze: - Sursa: fairside
×
×
  • Create New...