Skocz do zawartości

Nowy szablon forum

mygo.pl

Stworzyliśmy dla Was nowy wygląd forum. Z pewnością znajdziesz rzeczy, które wg Ciebie mogą zostać zmienione - wspomnij o tym w specjalnym wątku.

Czytaj więcej

Jak założyć własną sieć

serwerów CS

Zastanawiasz się nad prowadzeniem własnej sieci serwerów? Przeczytaj podstawowe informacje, na które należy zwrócić uwagę, przy takim projekcie.

Czytaj więcej

Tworzymy spis sieci

dodaj swoją

Dodaj sieć do której należysz, pozwoli to na promocję i budowę ogólnopolskiej bazy sieci CS.

Czytaj więcej

MYGO.pl

RSSy
  • Postów

    28210
  • Dołączył

  • Ostatnia wizyta

    nigdy
  • Wygrane w rankingu

    11

Treść opublikowana przez MYGO.pl

  1. Initially, I made this plugin for my server coop, but since I saw that a lot of people needed it, I decided to share it with you. Description: Have you ever wondered why a bot can raise an incapacitated survivor when he is beaten and his progress is not lost, and here is the player himself, when wants to raise an incapacitated bot/player when he is beaten by the infected, his progress lost. Not fair right? This plugin aims to solve this problem. Now, when a player will raise an incapacitated survivor and that incapacitated survivor is beaten by mobs/bosses, the progress of the will not be disrupted. How does this plugin work you ask? Very simple. It changes the client flag during raising to a fake flag and changes the value of the sb_all_bot_game cvar. Kvar is needed so that when the player is alone on the server, the round does not fail. If the cvar value sb_all_bot_game is set in your server.cfg to 1, then the plugin will ignore this cvar and will work as it should. Please read carefully: In what cases can progress be lost? If the spitter spits under you and you you will raise an incapacitated survivor when he is being beaten by the horde/bosses, then your progress will be lost. Why is this done, you ask? Because the server can crash, this is why I needed to resort to sdkhooks so that the player's flag does not change to a fake flag when the player is standing in acid. Well, in any case, as soon as you move away from the acid and you will raise an incapacitated survivor, even if he is in the acid, your progress will not be disrupted. Attached Files Get Plugin or Get Source (l4d2_Raise_incapacitated.sp - 2.0 KB) Wyświetl pełny artykuł
  2. Hey, So i have an amx_who plugin But it doesnt print in the console It shows the default “Yes yes” This is how i want it to print: https://pastebin.com/a1Mg2jcM This is the amx_who.sma code: https://pastebin.com/RU342U5T I also want At VIP grade to show the name and then Gold Like this: VIP Player - Gold Player - Gold Etc and also show for admins Like Admin -VIP Gold Admin -VIP Gold Only if they have VIP on flag “t” Like in the sma At VIP flag “bt” Przeczytaj cały wpis
  3. can someone convert this plugin to zp50 pls Attached Files Get Plugin or Get Source (xman2030_weather.sma - 5.7 KB) Przeczytaj cały wpis
  4. Hello, so there's a well-known bug in Half-Life where if you join spectator's mode via console, you are unable to exit unless you rejoin the server. So far I've tried 3 spectator's mode fix plugins, which do let you exit the mode and get back in the game, but the problem is that the HUD is gone the moment you get back in the game (health, HEV suit armor, ammo, etc.). I'll attach the photos of the issue using one of the plugins as an example: Before entering spectator's mode: https://i.imgur.com/O461gEB.jpeg After exiting spectator's mode by typing the same 'spectate' command in the console: https://i.imgur.com/9eKw7cR.jpeg I'd like to note that I have joined multiple servers, where there's an option to get out of the spectators mode by pressing "ENTER' key and then selecting #Menu_Spectate to get back into the game. The plugin also seems to push a message in the chat for everyone to see whenever someone enters or leaves the spectator's mode. And it doesn't experience the disappearing HUD bug. If someone knows of this particular plugin, I'd really appreciate linking it to me ! Adding an example photo of that plugin: https://i.imgur.com/S8jluK2.jpeg Thank you ! Przeczytaj cały wpis
  5. Hello. I´ve searched and didn't found what I'm about to ask. There is some delay on bomb planting and that bug prevents Terrorists from planting when there is still some available time in the round. Is there a way to make a plugin so we can plant the bomb faster? Like "press and plant" ? Thank you in advance. :) Przeczytaj cały wpis
  6. Hello, I've noticed that the server CMD doesn't show online players, even tho there are players connected to the server. How do I make it so that the CMD displays the players online? Or do I need some sort of plugin for that as well? Thank you ! Photos of the issue: #1 https://i.imgur.com/4ZdeTH3.png #2 https://i.imgur.com/tBLM6WB.png Przeczytaj cały wpis
  7. This is a lightweight version of Ultimate Gore plugin for Counter-Strike and Condition Zero. Gibs used are the default Half-Life ones, so no custom messages are needed. There is only 1 cvar "amx_gore" with 3 flags (default "ab"): a = Blood spray on death by headshot b = Gib on death by C4 explosion c = Gib on death by nade Remember to set these cvars in your server.cfg Code: violence_ablood 3 violence_hblood 3 violence_agibs 3 violence_hgibs 3Compatible with HLDS / ReHLDS and zBots. That's it. Have fun. Attached Files Get Plugin or Get Source (cs_gore_lite.sma - 2.6 KB) Przeczytaj cały wpis
  8. Hey, im interested in a plugin, which would push a message/log in the dedicated server's console whenever a player connects to a server, I'd appreciate if someone could help me out with that. Thanks ! Przeczytaj cały wpis
  9. Descriptionafter a period of time, you can self escape once from special infected's skill. kill horde or special infected can reduce the cooldown(optional). press shift buttons to query the current cooldown. occupy center text to print info when survivor is alive or afk. current support translation: chi(Simplified Chinese). I won't add more translations, you could make your own or ask another one. Cvars PHP Code: // duration to block boomer skill // - // Default: "3.0" // Minimum: "0.000000" escape_cooldown_block_time_boomer "3.0" // cooldown will decrease when killed a horde // - // Default: "1.5" // Minimum: "0.000000" escape_cooldown_reward_horde "1.5" // cooldown will decrease when killed a special_infected // - // Default: "5.0" // Minimum: "0.000000" escape_cooldown_reward_special_infected "5.0" // escape cooldown // - // Default: "60.0" // Minimum: "0.100000" escape_cooldown_time "60.0" Change log Spoiler Code: 1.0 (2024-02-27: -init public release. Attached Files escape_cooldown.phrases.txt (1.7 KB) Get Plugin or Get Source (escape_cooldown.sp - 20.8 KB) Wyświetl pełny artykuł
  10. I remember seeing something like this before but for the angels of me, I couldn't find it anywhere... While a player is holding the knoif he becomes less visible, partially transparent or something like that. Like that predator cloaking thing. 65% or even a bit more invisible/transparent would be noice. Przeczytaj cały wpis
  11. Hello, im looking for this particular mod port for my Half-Life server: https://forums.alliedmods.net/showth...hlight=minigun If anyone could assist me with that I'd greatly appreciate ! Przeczytaj cały wpis
  12. Hello, i use this plugin to change skin but when person change skin he need to touch 2 or 3 to show grenad or pistol and when set knife show skin not change directly. I mean when chose you need to set otherthing and when back skin change i need to make skin to change direct when you have knife PHP Code: #include <amxmodx> #include <cstrike> #include <cromchat> new const PLUGIN[] = "Knife Menu"; new const VERSION[] = "1.0"; new const AUTHOR[] = "RevCrew"; new const KNFModels[][] = { "models/v_knife.mdl", "models/RevCrewz/v_Knife1.mdl", "models/RevCrewz/v_Knife2.mdl", "models/RevCrewz/v_Knife3.mdl", "models/RevCrewz/v_Knife4.mdl" }; new const KNFMenuNames[][] = { "Knife [DEFAUT]", "Knife Gamma", "Knife Tatto's", "Knife Glace", "Knife Slice" }; new KNF[33]; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR); register_clcmd("say /knife","KnfMenu"); register_event("CurWeapon", "CurentWeapon", "be", "1=1"); } public plugin_precache() { for(new i; i < sizeof KNFModels; i++) { precache_model(KNFModels[i]); } } public MenuKnf(id) { new menu = menu_create("\y>>>>> \rKnife Menu \y<<<<<^n \dby >>\rRevCrew\d<<", "KnfCase") menu_additem(menu, "Knife \r[DEFAUT]^n", "1", 0) menu_additem(menu, "\wKnife \yGamma", "2", 0) menu_additem(menu, "\wKnife \yTatto's", "3", 0) menu_additem(menu, "\wKnife \yGlace", "4", 0) menu_additem(menu, "\wKnife \ySlice", "5", 0) menu_setprop(menu, MPROP_EXIT, MEXIT_ALL); menu_display(id, menu, 0 ); return 1; } public KnfCase(id, menu, item) { if(item == MENU_EXIT) { return 1; } new nick[33]; get_user_name(id, nick, 32); KNF[id] = item; CC_SendMessage(id, "&x03%s &x01You Chouse &x04%s &x01as Your Knife", nick, KNFMenuNames[item]); menu_destroy (menu); return 1; } public CurentWeapon(id) { if(get_user_weapon(id) == CSW_KNIFE) { set_pev(id, pev_viewmodel2, KNFModels[KNF[id]]); } } public KnfMenu(id) { if(is_user_alive(id)) { MenuKnf(id); }else{ MenuKnf(id); } } Przeczytaj cały wpis
  13. Descriptionafter self revive by other plugins or mods, block the "thanks" scene, no soliloquize. Change log Spoiler Code: 1.0 (2024-02-25: -init public release. Attached Files Get Plugin or Get Source (block_self_revive_thanks_scene.sp - 4.6 KB) Wyświetl pełny artykuł
  14. i want to add ADMIN_LEVEL_G flag ,so only people with this flag can use /colors Add in the /colors menu the function Remove trail as the first options , when you select it the trail is removed and a Chat message shows "you remove your trail " Also this plugin is based on the first /trail plugin , when you say trail / trail " trail 12 blue" gives you trail color , remove this option, when you type: trail /trail colors /colors , this way you can only use it from the /colors menu. Code: /***************************************************************************************** * * plugin_trail.sma * * By Bahrmanou ([email protected]) * *****************************************************************************************/ /***************************************************************************************** If some map cause problem (crash the server) because of too much precaches, create a file in your AmxModx configs folder named 'sensiblemaps.cfg' and add the map name (WITHOUT the extension '.bsp') in that file. So if the map is in the list, the plugin prevents trail sprites to be precached (i.e. the trails are DISABLED for this map. *****************************************************************************************/ #include <amxmodx> #include <amxmisc> #include <engine> #define PLUGNAME "plugin_trail" #define VERSION "1.3.1" #define AUTHOR "Bahrmanou" #define ACCESS_LEVEL ADMIN_LEVEL_A #define ACCESS_ADMIN ADMIN_ADMIN #define MAX_TEXT_LENGTH 200 #define MAX_NAME_LENGTH 40 #define MAX_PLAYERS 32 #define MAX_DISTANCE 300 #define CFG_FILE "colors.cfg" #define MAX_COLORS 200 #define DEF_TRAIL_LIFE 2 #define TASKID 1337 // change if it interfere with another plugin! #define TICK 0.1 #define NUM_SPRITES 12 new bool:gl_parsed new bool:gl_trail new bool:gl_not_this_map new gl_trail_life new gl_trail_size[MAX_PLAYERS] new gl_trail_brightness[MAX_PLAYERS] new gl_trail_type[MAX_PLAYERS] new gl_sprite_name[NUM_SPRITES][] = { "sprites/laserbeam.spr", "sprites/blueflare1.spr", "sprites/dot.spr", "sprites/flare5.spr", "sprites/flare6.spr", "sprites/plasma.spr", "sprites/smoke.spr", "sprites/xbeam5.spr", "sprites/xenobeam.spr", "sprites/xssmke1.spr", "sprites/zbeam3.spr", "sprites/zbeam2.spr" } new gl_sprite[NUM_SPRITES] new gl_def_sprite_size[NUM_SPRITES] = { 5, 12, 4, 16, 16, 6, 9, 4, 15, 14, 15, 20 } new gl_def_sprite_brightness[NUM_SPRITES] = { 160, 255, 200, 255, 255, 230, 150, 150, 240, 220, 200, 200 } new gl_players[MAX_PLAYERS] new gl_player_position[MAX_PLAYERS][3] new gl_timer_count[MAX_PLAYERS] new gl_timer_limit new gl_player_colors[MAX_PLAYERS][3] new gl_color_names[MAX_COLORS][MAX_NAME_LENGTH] new gl_colors[MAX_COLORS][3] new gl_num_colors public plugin_init() { register_plugin(PLUGNAME, VERSION, AUTHOR) register_concmd("amx_trail","cmdTrail", ACCESS_LEVEL, "- ['on'|'off'|'1'|'0'] : enable/disable trails.") register_concmd("amx_trail_user","cmdUserTrail", ACCESS_LEVEL, "- <name or #userid> <colorname | 'random' | 'off'> : set user trail.") register_concmd("amx_trail_type", "cmdTrailType", ACCESS_LEVEL, "- <type> : set trail type for all players.") register_concmd("amx_trail_life","cmdTrailLife", ACCESS_LEVEL, "- [duration] : get/set trail duration, in seconds.") register_concmd("amx_trail_size","cmdTrailSize", ACCESS_LEVEL, "- [size] : get/set trail size.") register_concmd("amx_trail_brightness","cmdTrailBrightness", ACCESS_LEVEL, "- [brightness] : get/set trail brightness.") register_concmd("amx_trail_reload", "cmdReload", ACCESS_LEVEL, ": reload colors configuration file.") register_clcmd("say /colors", "trails_menu") register_clcmd("say", "SayCmd", 0, "") gl_parsed = gl_trail = parse_file() if (!gl_sprite[0]) gl_trail = false gl_trail_life = DEF_TRAIL_LIFE gl_timer_limit = floatround(float(gl_trail_life)/TICK) } public plugin_modules() { require_module("engine") } public plugin_precache() { if (check_map()) { gl_not_this_map = true return } for (new i=0; i<NUM_SPRITES; i++) { gl_sprite[i] = precache_model(gl_sprite_name[i]) } } public client_putinserver(id) { gl_trail_type[id] = gl_sprite[0] gl_trail_size[id] = gl_def_sprite_size[0] gl_trail_brightness[id] = gl_def_sprite_brightness[0] } public client_disconnect(id) { if (task_exists(TASKID+id)) remove_task(TASKID+id) gl_player_colors[id][0] = gl_player_colors[id][1] = gl_player_colors[id][2] = 0 } /***************************************************************************************** * * cmdTrail ['on'|'off'|'1'|'0'] : enable/disable trails. * *****************************************************************************************/ public cmdTrail(id, level, cid) { if (!cmd_access(id, level, cid, 1)) return PLUGIN_HANDLED if (!gl_parsed) { console_print(id, "Trails are OFF because I couldn't read the config file '%s'!", CFG_FILE) return PLUGIN_HANDLED } if (gl_not_this_map) { console_print(id, "Trails are disabled for this map!") return PLUGIN_HANDLED } new str[5] read_argv(1, str, 4) if (equali(str, "on") || equali(str, "1")) { if (gl_trail) { console_print(id, "Trails are already enabled.") } else { gl_trail = true console_print(id, "Trails are now ENABLED.") } } else if (equali(str, "off") || equali(str, "0")) { if (!gl_trail) { console_print(id, "Trails are already disabled.") }else { gl_trail = false new playercount get_players(gl_players, playercount) for (new i=0; i<playercount; i++) { kill_trail_task(gl_players[i]) } say_to_all("Your trail has been removed.", id) console_print(id, "Trails are now DISABLED.") } } else { if (gl_trail) { console_print(id, "Trails are ENABLED.") } else { console_print(id, "Trails are DISABLED.") } } return PLUGIN_HANDLED } /***************************************************************************************** * * cmdUserTrail <name or #userid> <colorname | 'random' | 'off'> : set user trail. * *****************************************************************************************/ public cmdUserTrail(id, level, cid) { if (!cmd_access(id, level, cid, 3)) return PLUGIN_HANDLED if (!gl_parsed) { console_print(id, "Trails are OFF because I couldn't read the config file '%s'!", CFG_FILE) return PLUGIN_HANDLED } if (gl_not_this_map) { console_print(id, "Trails are disabled for this map!") return PLUGIN_HANDLED } new user[MAX_NAME_LENGTH+1], colorname[MAX_NAME_LENGTH] new plName[MAX_NAME_LENGTH+1] read_argv(1, user, MAX_NAME_LENGTH) read_argv(2, colorname, MAX_NAME_LENGTH-1) new player = cmd_target(id, user, 6) if (!player) { console_print(id, "Unknown player: %s", user) return PLUGIN_HANDLED } get_user_name(player, plName, MAX_NAME_LENGTH) if (access(player, ADMIN_IMMUNITY) && id!=player) { console_print(id, "You cannot do that to %s, you silly bear!", plName) return PLUGIN_HANDLED } if (!is_user_alive(player)) { console_print(id, "Only alive players, please!") return PLUGIN_HANDLED } if (equali(colorname, "off")) { if (!gl_player_colors[player][0] && !gl_player_colors[player][1] && !gl_player_colors[player][2]) { console_print(id, "The %s's trail is already off!", plName) return PLUGIN_HANDLED } kill_trail_task(player) console_print(id, "The %s's trail has been removed.", plName) client_print(player, print_chat, "Your trail has been removed.") } else if (equali(colorname, "random")) { do_trail(player, "", "") console_print(id, "%s has now a random color trail.", plName) } else { do_trail(player, colorname, "") console_print(id, "%s has now a %s trail.", plName, colorname) } return PLUGIN_HANDLED } /***************************************************************************************** * * cmdTrailType <type> : set trail type (sprite) for all players * *****************************************************************************************/ public cmdTrailType(id, level, cid) { if (!cmd_access(id, level, cid, 2)) return PLUGIN_HANDLED if (!gl_parsed) { console_print(id, "Trails are OFF becaus I couldn't read the config file '%s'!", CFG_FILE) return PLUGIN_HANDLED } if (gl_not_this_map) { console_print(id, "Trails are disabled for this map!") return PLUGIN_HANDLED } new str[5], type read_argv(1, str, 4) type = str_to_num(str) if (type<1 || type>NUM_SPRITES) { console_print(id, "Type must be in [1,%d] range!", NUM_SPRITES) return PLUGIN_HANDLED } for (new i=0; i<MAX_PLAYERS; i++) { gl_trail_type[i] = gl_sprite[type-1] gl_trail_size[i] = gl_def_sprite_size[type-1] gl_trail_brightness[i] = gl_def_sprite_brightness[type-1] } restart_player_trail(id) return PLUGIN_HANDLED } /***************************************************************************************** * * cmdTrailLife [duration] : get/set trail duration, in seconds. * *****************************************************************************************/ public cmdTrailLife(id, level, cid) { if (!cmd_access(id, level, cid, 1)) return PLUGIN_HANDLED if (!gl_parsed) { console_print(id, "Trails are OFF because I couldn't read the config file '%s'!", CFG_FILE) return PLUGIN_HANDLED } if (gl_not_this_map) { console_print(id, "Trails are disabled for this map!") return PLUGIN_HANDLED } new Str[3], life read_argv(1, Str, 2) if (!Str[0]) { console_print(id, "Trail life is currently %d seconds.", gl_trail_life) return PLUGIN_HANDLED } life = str_to_num(Str) if (life<1 || life>30) { console_print(id, "Trail life must be in [1,30] range!") return PLUGIN_HANDLED } gl_trail_life = life gl_timer_limit = floatround(float(life)/TICK) restart_players_trails() return PLUGIN_HANDLED } /***************************************************************************************** * * cmdTrailSize [size] : get/set trail size. * *****************************************************************************************/ public cmdTrailSize(id, level, cid) { if (!cmd_access(id, level, cid, 1)) return PLUGIN_HANDLED if (!gl_parsed) { console_print(id, "Trails are OFF because I couldn't read the config file '%s'!", CFG_FILE) return PLUGIN_HANDLED } if (gl_not_this_map) { console_print(id, "Trails are disabled for this map!") return PLUGIN_HANDLED } new Str[3], size read_argv(1, Str, 2) if (!Str[0]) { console_print(id, "Your trail size is currently %d.", gl_trail_size[id]) return PLUGIN_HANDLED } size = str_to_num(Str) if (size<1) { console_print(id, "Trail size must be positive!") return PLUGIN_HANDLED } gl_trail_size[id] = size restart_player_trail(id) return PLUGIN_HANDLED } /***************************************************************************************** * * cmdTrailBrightness [brightness] : get/set trail brightness. * *****************************************************************************************/ public cmdTrailBrightness(id, level, cid) { if (!cmd_access(id, level, cid, 1)) return PLUGIN_HANDLED if (!gl_parsed) { console_print(id, "Trails are OFF because I couldn't read the config file '%s'!", CFG_FILE) return PLUGIN_HANDLED } if (gl_not_this_map) { console_print(id, "Trails are disabled for this map!") return PLUGIN_HANDLED } new Str[3], bright read_argv(1, Str, 3) if (!Str[0]) { console_print(id, "Your trail brightness is currently %d.", gl_trail_brightness[id]) return PLUGIN_HANDLED } bright = str_to_num(Str) if (bright<1 || bright>255) { console_print(id, "Brightness must be in [1,255] range!") return PLUGIN_HANDLED } gl_trail_brightness[id] = bright restart_player_trail(id) return PLUGIN_HANDLED } /***************************************************************************************** * * cmdReload : reload configuration file. * *****************************************************************************************/ public cmdReload(id, level, cid) { if (!cmd_access(id, level, cid, 1)) return PLUGIN_HANDLED if (gl_not_this_map) { console_print(id, "Trails are disabled for this map!") return PLUGIN_HANDLED } gl_parsed = parse_file() if (gl_parsed) { console_print(id, "Ok, configuration file successfuly reloaded.") } else { console_print(id, "Uh Oh...There was a problem! Please check your amx log file to know whats causing this.") } return PLUGIN_HANDLED } /***************************************************************************************** * * sayCmd : say trail <[['light'|'dark'] colorname] | ['random'] | ['off'] | ['help']> * *****************************************************************************************/ public SayCmd(id, level, cid) { new args[128], msg[200], plName[MAX_NAME_LENGTH], colname[MAX_NAME_LENGTH], arg2[MAX_NAME_LENGTH], arg3[MAX_NAME_LENGTH], typenum read_args(args, 128) remove_quotes(args) if (equali(args, "trail", 5)) { if (!gl_trail) { client_print(id, print_chat, "Trails have been disabled.") return PLUGIN_HANDLED } if (gl_not_this_map) { client_print(id, print_chat, "Trails have been disabled for this map.") return PLUGIN_HANDLED } get_user_name(id, plName, MAX_NAME_LENGTH) if (!get_user_team(id) && !access(id, ADMIN_ADMIN)) { client_print(id, print_chat, "You must be playing!") return PLUGIN_HANDLED } if (!args[5]) { do_trail(id, "", "") return PLUGIN_HANDLED } else { parse(args[6], colname, MAX_NAME_LENGTH, arg2, MAX_NAME_LENGTH, arg3, MAX_NAME_LENGTH) // console_print(id, "restline = '%s'", restline) typenum = str_to_num(colname) } if (equali(colname, "off")) { if (!gl_player_colors[id][0] && !gl_player_colors[id][1] && !gl_player_colors[id][2]) { client_print(id, print_chat, "Your trail is already off!") return PLUGIN_HANDLED } kill_trail_task(id) client_print(id, print_chat, "Your trail was removed.") format(msg, 199, "%s's trail was removed.", plName) say_to_all(msg, id) return PLUGIN_HANDLED } else if (equali(colname, "random")) { do_trail(id, "", "") return PLUGIN_HANDLED } else if (equali(colname, "help")) { trail_help(id) return PLUGIN_HANDLED } if (typenum) { if (typenum<1 || typenum>NUM_SPRITES) { client_print(id, print_chat, "Type must be in the range [1,%d].", NUM_SPRITES) return PLUGIN_HANDLED } typenum-- gl_trail_type[id] = gl_sprite[typenum] gl_trail_size[id] = gl_def_sprite_size[typenum] gl_trail_brightness[id] = gl_def_sprite_brightness[typenum] if (arg2[0]) { colname = arg2 arg2 = arg3 } else { if (!gl_player_colors[id][0] && !gl_player_colors[id][1] && !gl_player_colors[id][2]) { do_trail(id, "", "") return PLUGIN_HANDLED } new r = gl_player_colors[id][0] new g = gl_player_colors[id][1] new b = gl_player_colors[id][2] kill_trail_task(id) gl_player_colors[id][0] = r gl_player_colors[id][1] = g gl_player_colors[id][2] = b get_user_origin(id, gl_player_position[id]) set_task(TICK, "check_position", TASKID+id, "", 0, "b") trail_msg(id) client_print(id, print_chat, "You have a trail of type %d.", typenum+1) format(msg, 199, "%s has a type %d trail.", plName, typenum+1) say_to_all(msg, id) return PLUGIN_HANDLED } } if (equali(colname, "dark")) { copy(colname, MAX_NAME_LENGTH-1, arg2) if (!colname[0]) { client_print(id, print_chat, "Specify a color name!") return PLUGIN_HANDLED } do_trail(id, colname, "dark") } else if (equali(colname, "light")) { copy(colname, MAX_NAME_LENGTH-1, arg2) if (!colname[0]) { client_print(id, print_chat, "Specify a color name!") return PLUGIN_HANDLED } do_trail(id, colname, "light") } else { do_trail(id, colname, "") } } return PLUGIN_CONTINUE } /***************************************************************************************** *****************************************************************************************/ do_trail(id, colname[], intensity[]) { new i, msg[200] new name[33] get_user_name(id, name, 32) if (!colname[0]) { kill_trail_task(id) gl_player_colors[id][0] = random(256) gl_player_colors[id][1] = random(256) gl_player_colors[id][2] = random(256) get_user_origin(id, gl_player_position[id]) set_task(TICK, "check_position", TASKID+id, "", 0, "b") trail_msg(id) client_print(id, print_chat, "You have a random color trail.") format(msg, 199, "%s has a random color trail.", name) say_to_all(msg, id) return } for (i=0; i<gl_num_colors; i++) { if (equali(colname, gl_color_names[i])) { new Float:intens, r, g, b if (equali(intensity, "dark")) { intens = 0.5 } else if (equali(intensity, "light")) { intens = 2.0 } else { copy(intensity, 1, "") intens = 1.0 } kill_trail_task(id) r = floatround(float(gl_colors[i][0]) * intens) g = floatround(float(gl_colors[i][1]) * intens) b = floatround(float(gl_colors[i][2]) * intens) gl_player_colors[id][0] = min(r, 255) gl_player_colors[id][1] = min(g, 255) gl_player_colors[id][2] = min(b, 255) get_user_origin(id, gl_player_position[id]) set_task(TICK, "check_position", TASKID+id, "", 0, "b") trail_msg(id) if (intensity[0]) { client_print(id, print_chat, "You have a %s %s trail.", intensity, colname) format(msg, 199, "%s has now a %s %s trail.", name, intensity, colname) } else { client_print(id, print_chat, "You have a %s trail.", colname) format(msg, 199, "%s has now a %s trail.", name, colname) } say_to_all(msg, id) return } } client_print(id, print_chat, "Sorry, %s, but I dont recognize the color '%s'!", name, colname) return } /***************************************************************************************** *****************************************************************************************/ public check_position(taskid) { new origin[3], id = taskid-TASKID if (!get_user_team(id)) { kill_trail_msg(id) return } get_user_origin(id, origin) if (origin[0]!=gl_player_position[id][0] || origin[1]!=gl_player_position[id][1] || origin[2]!=gl_player_position[id][2]) { if (get_distance(origin, gl_player_position[id])>MAX_DISTANCE || gl_timer_count[id] >= gl_timer_limit/2) { kill_trail_msg(id) trail_msg(id) } gl_player_position[id][0] = origin[0] gl_player_position[id][1] = origin[1] gl_player_position[id][2] = origin[2] gl_timer_count[id] = 0 } else { if (gl_timer_count[id] < gl_timer_limit) gl_timer_count[id]++ } } /***************************************************************************************** *****************************************************************************************/ kill_trail_task(id) { if (task_exists(TASKID+id)) remove_task(TASKID+id) kill_trail_msg(id) gl_player_colors[id][0] = gl_player_colors[id][1] = gl_player_colors[id][2] = 0 } /***************************************************************************************** *****************************************************************************************/ kill_trail_msg(id) { gl_timer_count[id] = 0 message_begin(MSG_BROADCAST, SVC_TEMPENTITY) write_byte(99) // TE_KILLBEAM write_short(id) message_end() } /***************************************************************************************** *****************************************************************************************/ trail_msg(id) { message_begin(MSG_BROADCAST, SVC_TEMPENTITY) write_byte(22) // TE_BEAMFOLLOW write_short(id) write_short(gl_trail_type[id]) write_byte(gl_trail_life*10) write_byte(gl_trail_size[id]) write_byte(gl_player_colors[id][0]) write_byte(gl_player_colors[id][1]) write_byte(gl_player_colors[id][2]) write_byte(gl_trail_brightness[id]) message_end() } /***************************************************************************************** *****************************************************************************************/ restart_player_trail(id) { if (task_exists(TASKID+id)) { remove_task(TASKID+id) kill_trail_msg(id) get_user_origin(id, gl_player_position[id]) set_task(TICK, "check_position", TASKID+id, "", 0, "b") trail_msg(id) } } /***************************************************************************************** *****************************************************************************************/ restart_players_trails() { new playercount get_players(gl_players, playercount) for (new i=0; i<playercount; i++) { restart_player_trail(gl_players[i]) } } /***************************************************************************************** *****************************************************************************************/ say_to_all(msg[], id) { new playercount get_players(gl_players, playercount) for (new i=0; i<playercount; i++) { if (gl_players[i]!=id) client_print(gl_players[i], print_chat, msg) } } /***************************************************************************************** *****************************************************************************************/ trail_help(id) { new msg[200], clen=0 console_print(id, "^nTrail Colors List:^n") for (new i=0; i<gl_num_colors; i++) { clen += format(msg[clen], 199-clen, "%s ", gl_color_names[i]) if (clen > 80) { console_print(id, msg) copy(msg, 1, "") clen = 0 } } console_print(id, "^nNOTE: All colors can be prefixed by the words 'light' or 'dark'.^n") console_print(id, "^nSay 'trail <color>' to get a colored trail.^nSay 'trail off' to turn trail off.") console_print(id, "Say 'trail <number> [color]' to change the look of the trail.^n") console_print(id, "^nExamples:") console_print(id, " trail") console_print(id, " trail off") console_print(id, " trail tomato") console_print(id, " trail 6 gold") console_print(id, " trail 11 light blue") client_print(id, print_chat, "The colors list has been displayed in your console.") } /***************************************************************************************** *****************************************************************************************/ bool:parse_file() { new got_line, line_num=0, len=0, parsed new r[3][4], g[3][4], b[3][4] new full_line[MAX_TEXT_LENGTH], rest_line[MAX_TEXT_LENGTH], cfgdir[MAX_TEXT_LENGTH], cfgpath[MAX_TEXT_LENGTH] gl_num_colors = 0 get_configsdir(cfgdir, MAX_TEXT_LENGTH) format(cfgpath, MAX_TEXT_LENGTH, "%s/%s", cfgdir, CFG_FILE) if (!file_exists(cfgpath)) { log_amx("ERROR: Cannot find configuration file '%s'!", cfgpath) return false } got_line = read_file(cfgpath, line_num, full_line, MAX_TEXT_LENGTH, len) if (got_line <=0) { log_amx("ERROR: Cannot read configuration file '%s'!", cfgpath) return false } while (got_line>0) { if (!equal(full_line, "//", 2) && len) { strtok(full_line, gl_color_names[gl_num_colors], MAX_NAME_LENGTH, rest_line, MAX_TEXT_LENGTH, ' ', 1) copy(full_line, MAX_TEXT_LENGTH, rest_line) parsed = parse(full_line,r[0],3,g[0],3,b[0],3) if (parsed<3) { log_amx("ERROR: Not enough colors, line %d in configuration file '%s'!", 1+line_num, CFG_FILE) return false } gl_colors[gl_num_colors][0] = str_to_num(r[0]) gl_colors[gl_num_colors][1] = str_to_num(g[0]) gl_colors[gl_num_colors][2] = str_to_num(b[0]) gl_num_colors++ if (gl_num_colors>=MAX_COLORS) { log_amx("WARNING: Max colors reached in file '%s'!", CFG_FILE) return true } } line_num++ got_line = read_file(cfgpath, line_num, full_line, MAX_TEXT_LENGTH, len) } return true } check_map() { new got_line, line_num, len new cfgdir[MAX_TEXT_LENGTH] new cfgpath[MAX_TEXT_LENGTH] new mapname[MAX_NAME_LENGTH] new txt[MAX_TEXT_LENGTH] get_configsdir(cfgdir, MAX_TEXT_LENGTH-1) get_mapname(mapname, MAX_NAME_LENGTH-1) format(cfgpath, MAX_TEXT_LENGTH, "%s/sensiblemaps.cfg", cfgdir) if (file_exists(cfgpath)) { got_line = read_file(cfgpath, line_num, txt, MAX_TEXT_LENGTH-1, len) while (got_line>0) { if (equali(txt, mapname)) return 1 line_num++ got_line = read_file(cfgpath, line_num, txt, MAX_TEXT_LENGTH-1, len) } } return 0 } public trails_menu(id) { static i,menu menu = menu_create("Trails Colors","selected_trails") for(i=0; i<gl_num_colors; i++) menu_additem(menu,gl_color_names[i]) menu_setprop(menu, MPROP_EXIT, MEXIT_ALL) menu_display(id, menu, 0) } public selected_trails(id,menu,item) { do_trail(id, gl_color_names[item], "") } Przeczytaj cały wpis
  15. this plugin makes your incapacitated health bar cleaner. Change log Spoiler Code: 1.5 (2024-02-25: -minor improve. Attached Files Get Plugin or Get Source (remove_health_buffer_when_incapped.sp - 2.5 KB) Wyświetl pełny artykuł
  16. MYGO.pl

    RSS[Solved] No

    Result ya Przeczytaj cały wpis
  17. Greetings I've got a blockmaker that I'm trying to fix but I can't When I try to change the block size it's always the normal model and can't figure out what's the problem The models work fine in other Blockmakers but in this one it's always normal :X I need the pole/large/small to work with their models Much Appreciation Attached Files Get Plugin or Get Source (2.sma - 179.0 KB) Przeczytaj cały wpis
  18. Hi is there any modification of ZombiePlague 4.3 with only infection mod (removed swarm, multi, neme, surv etc) Przeczytaj cały wpis
  19. Hola, ¿puedes darme un complemento cuando un jugador se coloque cuchillo se vuelva invisible pero si saca arma se vuelva visible. Przeczytaj cały wpis
  20. If I send text messages via RCON to my CS2 server it looks ingame like this: Console: Hello world! Is it possible (or is there already a plugin) that can interpret these messages and rewrite them in color so the players on the server can see the message easier? Like: Admin: Hello world! Regards Bl4CkGuuN Przeczytaj cały wpis
  21. Hello, forgive me if this has already been asked/discussed, Im currently in a process of opening my HL: Deathmatch server, but I've noticed that there's some sort of anti bhop or speed cap which prevents players from gaining higher speeds. I've join other servers which do not have such issue so I was wondering if there's a plugin that fixes my described issue or maybe I need to tweak something within the server files? Sorry for newbie question -tiltedShrimp Przeczytaj cały wpis
  22. Hello everyone, this plugin separates the arm skins for each team. The only problem is that it doesn't work when I watch a replay on HLTV, the default arm always remains for both teams. PHP Code: #include <amxmodx> #include <cstrike> #include <fakemeta> #include <hamsandwich> new const VIEW_MODEL[][] = { "models/alt/v_knife.mdl", //0 "models/alt/v_p228.mdl", //1 "models/alt/v_knife.mdl", //2 "models/alt/v_scout.mdl", //3 "models/alt/v_hegrenade.mdl", //4 "models/alt/v_xm1014.mdl", //5 "models/alt/v_c4.mdl", //6 "models/alt/v_mac10.mdl", //7 "models/alt/v_aug.mdl", //8 "models/alt/v_smokegrenade.mdl",//9 "models/alt/v_elite.mdl", //10 "models/alt/v_fiveseven.mdl", //11 "models/alt/v_ump45.mdl", //12 "models/alt/v_sg550.mdl", //13 "models/alt/v_galil.mdl", //14 "models/alt/v_famas.mdl", //15 "models/alt/v_usp.mdl", //16 "models/alt/v_glock18.mdl", //17 "models/alt/v_awp.mdl", //18 "models/alt/v_mp5.mdl", //19 "models/alt/v_m249.mdl", //20 "models/alt/v_m3.mdl", //21 "models/alt/v_m4a1.mdl", //22 "models/alt/v_tmp.mdl", //23 "models/alt/v_g3sg1.mdl", //24 "models/alt/v_flashbang.mdl", //25 "models/alt/v_deagle.mdl", //26 "models/alt/v_sg552.mdl", //27 "models/alt/v_ak47.mdl", //28 "models/alt/v_knife.mdl", //29 "models/alt/v_p90.mdl" //30 } new const OLD_MODEL[][] = { "", //0 "models/v_p228.mdl", //1 "", //2 "models/v_scout.mdl", //3 "models/v_hegrenade.mdl", //4 "models/v_xm1014.mdl", //5 "models/v_c4.mdl", //6 "models/v_mac10.mdl", //7 "models/v_aug.mdl", //8 "models/v_smokegrenade.mdl", //9 "models/v_elite.mdl", //10 "models/v_fiveseven.mdl", //11 "models/v_ump45.mdl", //12 "models/v_sg550.mdl", //13 "models/v_galil.mdl", //14 "models/v_famas.mdl", //15 "models/v_usp.mdl", //16 "models/v_glock18.mdl", //17 "models/v_awp.mdl", //18 "models/v_mp5.mdl", //19 "models/v_m249.mdl", //20 "models/v_m3.mdl", //21 "models/v_m4a1.mdl", //22 "models/v_tmp.mdl", //23 "models/v_g3sg1.mdl", //24 "models/v_flashbang.mdl", //25 "models/v_deagle.mdl", //26 "models/v_sg552.mdl", //27 "models/v_ak47.mdl", //28 "models/v_knife.mdl", //29 "models/v_p90.mdl" //30 } new const g_weapons[][] = { "weapon_p228", "weapon_scout", "weapon_hegrenade", "weapon_xm1014", "weapon_c4", "weapon_mac10", "weapon_aug", "weapon_smokegrenade", "weapon_elite", "weapon_fiveseven", "weapon_ump45", "weapon_sg550", "weapon_galil", "weapon_famas", "weapon_usp", "weapon_glock18", "weapon_awp", "weapon_mp5navy", "weapon_m249", "weapon_m3", "weapon_m4a1", "weapon_tmp", "weapon_g3sg1", "weapon_flashbang", "weapon_deagle", "weapon_sg552", "weapon_ak47", "weapon_knife", "weapon_p90" } const m_pPlayer = 41; new cvar_alteam, primer[33]; public plugin_init() { register_plugin("CS:GO Arm Switcher Lite", "2.6", "Cheap_Suit & hellmonja"); register_event("CurWeapon", "Event_CurWeapon", "be","1=1"); RegisterHam(Ham_AddPlayerItem, "player", "FwdAddItem"); for(new i = 0; i <= sizeof g_weapons - 1; i++) RegisterHam(Ham_Item_Deploy, g_weapons[i], "Fw_ItemDeploy", 1); cvar_alteam = register_cvar("armsw_team", "1"); } public plugin_precache() { for(new i = 0; i <= CSW_P90; i++) precache_model(VIEW_MODEL[i]); } public Event_CurWeapon(id) { if(!is_user_connected(id) || !is_user_alive(id)) return if(!primer[id]) { switch_arms(id, get_user_weapon(id)); primer[id] = 1; } } public Fw_ItemDeploy(weapon) { static id; id = get_pdata_cbase(weapon, m_pPlayer, 4); if(!is_user_connected(id) || !is_user_alive(id)) return PLUGIN_HANDLED if(get_pcvar_num(cvar_alteam) <= 0 || get_pcvar_num(cvar_alteam) >= 3) return PLUGIN_CONTINUE switch_arms(id, cs_get_weapon_id(weapon)); return PLUGIN_CONTINUE } public FwdAddItem(id) { switch_arms(id, get_user_weapon(id)); } switch_arms(id, wpnid) { static model[32]; pev(id, pev_viewmodel2, model, 31); if(get_user_team(id) == get_pcvar_num(cvar_alteam) && equali(model, OLD_MODEL[wpnid])) set_pev(id, pev_viewmodel2, VIEW_MODEL[wpnid]); return PLUGIN_CONTINUE } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1033\\ f0\\ fs16 \n\\ par } */ Przeczytaj cały wpis
  23. Offline game mod zp5.0.8 I want to add fps next to ammo in the bottom left bar? Przeczytaj cały wpis
  24. When you were rescued by the other players, you realized you had no primary weapon, and now I've fixed it to give primary weapons at any opportunity. Attached Files Get Plugin or Get Source (l4d_Rescuer weapon fix.sp - 1.5 KB) Wyświetl pełny artykuł
  25. Hello, first of all I apologize if the topic is in the wrong section. I'm looking for MrHellish's plugin, it was called nativepro, but I can't find it, it was used for admin rights and more precisely for admins who are added by nick to use their rights with another nick, I think the command was amx_goadmin. Adding admins by STEAMID or IP doesn't work for me. thanks in advance Edit: now i see that i have put the topic in sourcemod, please move it. It is about counter strike 1.6 Przeczytaj cały wpis
×
×
  • Dodaj nową pozycję...