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

    28685
  • Dołączył

  • Ostatnia wizyta

    nigdy
  • Wygrane w rankingu

    11

Treść opublikowana przez MYGO.pl

  1. Skin Pack By L Duke Now For Sourcemod Including Skinchooser ! Inluding All Config Datas Inluding bz2 Files For Fast Download Extract all Files To The Right Directory. Restart Your Server. Finished Now Everyone Can Choose A Very Cool Skin Many Thanks Goes To L-Duke Best Regards Crawfy Download Skin Pack Here Przeczytaj cały wpis
  2. for gugname, right now it only lets one mp3 for when u knife someone and get knifed can I please have maybe be able to have 3 or 5 mp3s for both when u knife someone and when u get knifed Przeczytaj cały wpis
  3. If there is a plugin that prevent the server-address(IP) from being added to HLSW? "addip" cannot be useful Przeczytaj cały wpis
  4. MYGO.pl

    [L4D2] Shop

    this plugin adds a store to l4d2 games to open a store and buy something just type !shop in the chat (or sm_shop in the console), for admins there is a command !givemoney with this command you can give players money for example: !givemoney pewdiepie 100000. If your friend does not have enough money, just share your money a little: enter !pay your friend’s name and the amount of money.:) Attached Files [L4D2] Store.smx (10.2 KB) Get Plugin or Get Source ([L4D2] Store.sp - 18.0 KB) Wyświetl pełny artykuł
  5. About: As you know particles should be uncache on end maps (Just like models, materials). But somehow uncache function is broken in CS:GO. Thus string table is filled after played some maps (Reached to 1023/1023). And you can't see particles correctly anymore until restart server. This plugin does fix uncache function and revert string tables as cleaned up. Requirements: None Thanks: gubka - Idea for implement this inside SM Plugins. (My older version was an extension) https://forums.alliedmods.net/showthread.php?t=313951 GFLClan.com, ZombiEden.cn - Testing a lot. Changes: Code: 1.0 (16/03/2020) - Initial release (With supporting Windows OS) Attached Files Get Plugin or Get Source (CSGO_ParticleSystemFix.sp - 14.4 KB) CSGO_ParticleSystemFix.games.txt (2.8 KB) Wyświetl pełny artykuł
  6. Hi, i have installed kz mod today on my local cs 1.6 server and i can't find any plugin that will stop blocks by doing that: Przeczytaj cały wpis
  7. Description: This plugin simulate the coronavirus infection (covid19). Idea by https://forums.alliedmods.net/showthread.php?t=321894 Commands: sm_givevirus <name> - for give the coronavirus to someone (Required admin flag ban "d" for use). sm_removevirus <name> - for remove the coronavirus to someone (Required admin flag ban "d" for use). Cvars: Configure the file sm_coronavirus.cfg generated on cfg/sourcemod on the first load. Code: // Seconds that you need to stay in a quarantine zone for be healed. // - // Default: "60.0" sm_coronavirus_quarantine_time "60.0" // Chance of share coronavirus. // - // Default: "10" sm_coronavirus_share_chance "10" // Chance of share coronavirus when you cough. // - // Default: "60" sm_coronavirus_share_chancecough "60" // Seconds for have the blind effect. // - // Default: "5.0" sm_coronavirus_time_blind "5.0" // Each X seconds for have the coronavirus effects. // - // Default: "30.0" sm_coronavirus_time_effects "30.0" // Each X seconds for share the coronavirus. // - // Default: "5.0" sm_coronavirus_time_share "5.0" // Seconds for start to know that you have coronavirus. // - // Default: "60.0" sm_coronavirus_time_start "60.0" // Coronavirus plugin version. // - // Default: "0.2 pre alpha" sm_coronavirus_version "0.2 pre alpha" // Damage that produce coronavirus when you have the effects. // - // Default: "5" sm_coronavirus_virus_damage "5" // Distance min for share coronavirus to someone. // - // Default: "100.0" sm_coronavirus_virus_distance "100.0" Requeriment (optional): Devzones plugin for create a zone with the prefix "safezone" that will be use as quarantine zone. Download: Main repository Direct download Code changes Wyświetl pełny artykuł
  8. Colored Rocket Trail A simple HL plugin that will add a random color to RPG rockets. Code: #include <amxmodx> #include <fakemeta> #define ROCKET_TRAIL TE_BEAMFOLLOW #define RANDOM_COLOR random(255) public plugin_init() { register_plugin("Colored Rocket Trail", "1.0", "thEsp"); register_message(SVC_TEMPENTITY, "msgTempEntity"); } public msgTempEntity() { if (get_msg_arg_int(1) != ROCKET_TRAIL) return; new iEntity = get_msg_arg_int(2), szClassname[32]; pev(iEntity, pev_classname, szClassname, charsmax(szClassname)); if (!equal(szClassname, "rpg_rocket")) return; set_msg_arg_int(6, 0, RANDOM_COLOR); set_msg_arg_int(7, 0, RANDOM_COLOR); set_msg_arg_int(8, 0, RANDOM_COLOR); } Source available on GitHub. Przeczytaj cały wpis
  9. Hi there, I downloaded the Peace Maker plugin and then downloaded the new version of Bobis. Everything is going great. Except for one mistake. Two chat messages are displayed in Russian. You can see here below. So far I could not find anything in the .sp files (but I am also a total noob in this sector). Since I find this plugin very good, I ask for help. Which of you can help me there please? Maybe it is possible to insert a .phrases.txt into this plugin? PLEASE HELP ME TO KEEP THIS PLUGIN LIVING Here you can download it again to help me please Attached Files smctf_1.3.zip (3.17 MB) Przeczytaj cały wpis
  10. Hi! im making a plugin for my server. an admin command of course! I want to know how to kill someone, or kill everyone, something similar to roblox admin commands. Can you please help me? Code: /* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #define PLUGIN "New Plug-In" #define VERSION "1.0" #define AUTHOR "author" public plugin_init() { register_plugin(Kill player, 1.0, Modder) register_concmd("amx_kill", "cmd_kill", ADMIN_SLAY, "<target>") .. } Przeczytaj cały wpis
  11. MYGO.pl

    Vote with time

    Hello its possible to make vote with time when is 23:00 ti 10:00 admin cant make vote and when its 10 in morning can make vote for maps Przeczytaj cały wpis
  12. Hello everyone, I'm suggesting for a plugin for players disable plugins by choice like I added a trail plugin and the player doesnt like all trail so the player writes amx_example and it opens menu with settings what to off and what to on And those settings are created by me in INI File or sma Is that possible or impossible, Thanks for understanding, Thanks for reading. Cheers Przeczytaj cały wpis
  13. Unusual Effects This plugin introduces unusual effects from Team Fortress 2. Includes head and feet effects. See here for a (almost) full overview. GitHub I developed this plugin several years ago when I used to own a gaming community. I was deleting some folders to free up space the other day when I found it and thought it would be a waste to forever delete it as it still might be useful for some of you. The code ain't pretty, it uses the old syntax but hey it works I think. Features 57 head effects 44 feet effects Toggleable third person on the menu. Setup Download the plugin archive. Upload everything to your gameserver. Edit addons/sourcemod/databases.cfg and add a database entry for the plugin: Quote: "unusual" { "driver" "sqlite" "database" "unusual-effects" } Edit server convars on cfg/sourcemod/unusual_effects.cfg to your taste. Chat Commands Open the menu: !ue !unusualeffects !unusual !unusuals Server Convars sm_ue_method - This plugin has two alternative ways of putting the effects on the players: normal (more stable, can't hide head effects in first person), experimental (buggy, sometimes doesn't work but hides head effects in first person). Default value: normal sm_ue_flag - Restrict usage of the plugin to players with the given sourcemod flag. If left empty everyone can access it. Default value: o sm_ue_time - How long (seconds) players are able to change the effect they are using after a round starts. Default value: 300 Known Bugs Players can't see the effects the first time they connect after downloading the files from the server. This is unavoidable. The client's game engine only loads the particle effects next time the map changes. Attached Files Unusual Effects.zip (4.13 MB) Get Plugin or Get Source (unusual_effects.sp - 29.3 KB) Wyświetl pełny artykuł
  14. NightVision SourceMod plugin that allows players to enable custom "night vision". Features: This plugin was created to light up dark maps and help players navigate on them. There's no green night vision, as it wasn't it's purpose, but you can look at Creating custom templates section, and create your own variation of night vision template, as this plugin has support for that. Examples: Before: After (using 3rd default template): Installing notices: Install plugin like you normally would, don't forget about cfg file (addons/sourcemod/configs/nightvision.cfg) and .raw files (materials/gammacase/nightvision/*.raw) (don't forget to add these files to fastdl to!). If you satisfied with default template presets then you are done with installing it, if not, then take a look at Creating custom templates section for more information! Usage: Use sm_nightvision (sm_nv for short) to toggle the nightvision. Use sm_nightvisionsettings (sm_nvs for short) to open settings menu, where you can configure your night vision (Note: it can be configured in real time, just enable it and then open settings menu). Creating custom templates: To create and use custom templates you need to create .raw files (which are color correction files used by color_correction entity), which can be created and configured in game (here's video tutorial on how to create them). After you've done creating them you need to add them into addons/sourcemod/configs/nightvision.cfg, follow the description added to Template1, after you've done with cfg file, you should be able to see and use it in game. Special thanks: mbhound#0001 - for helping me to test this plugin before release. If you found bug or want to suggest something, please do it here. DOWNLOAD SOURCE Wyświetl pełny artykuł
  15. About: Makes players un-zoom / un-scope Sniper Rifles on each shot. Thanks to "Iizuka07" for the idea and request. Cvars: Saved to l4d_unscope.cfg in your servers \cfg\sourcemod\ folder. PHP Code: // 0=Plugin off, 1=Plugin on. l4d_unscope_allow "1" // Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all). l4d_unscope_modes "" // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none). l4d_unscope_modes_off "" // Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together. l4d_unscope_modes_tog "0" // 1=Hunting Rifle. L4D2 only: 2=Sniper Military, 4=Sniper AWP, 8=Sniper Scout. 15=All. l4d_unscope_types "15" // "1" in L4D1. // Unscope plugin version. l4d_unscope_version Changes: Code: 1.0 (14-Mar-2020) - Initial release. Installation: Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder. Download the .txt gamedata file and put into your servers \addons\sourcemod\gamedata\ folder. Attached Files l4d_unscope.txt (268 Bytes) Get Plugin or Get Source (l4d_unscope.sp - 7.7 KB) Wyświetl pełny artykuł
  16. About: Stumbles the Tank when hurt by the Grenade Launcher projectile. Thanks to "Iizuka07" for the idea and request. Cvars: Saved to l4d2_tank_stumble.cfg in your servers \cfg\sourcemod\ folder. PHP Code: // 0=Plugin off, 1=Plugin on. l4d2_tank_stumble_allow "1" // Turn on the plugin in these game modes, separate by commas (no spaces). (Empty = all). l4d2_tank_stumble_modes "" // Turn off the plugin in these game modes, separate by commas (no spaces). (Empty = none). l4d2_tank_stumble_modes_off "" // Turn on the plugin in these game modes. 0=All, 1=Coop, 2=Survival, 4=Versus, 8=Scavenge. Add numbers together. l4d2_tank_stumble_modes_tog "0" // The distance the Tank must be to the Grenade Launcher projectile impact to stumble. l4d2_tank_stumble_range "200.0" // Unscope plugin version. l4d2_tank_stumble_version Changes: Code: 1.0 (14-Mar-2020) - Initial release. Installation: Click "Get Plugin" and put the .smx file into your servers \addons\sourcemod\plugins\ folder. Attached Files Get Plugin or Get Source (l4d2_tank_stumble.sp - 8.6 KB) Wyświetl pełny artykuł
  17. Hi my friends i need a plugin not round end until a player is killed. When a player is killed the round ends. And you can set it to custom maps, not all maps. Sorry my english is not good. Tnx Przeczytaj cały wpis
  18. ------------------------ INTRO -------------------------------- What does this plugin do? Like in the title, it plays a custom entry song when a player joins the server. You can add a player from configs/EntrySong.txt ------------------------ Features -------------------------------- * Cookie based option to turn off / turn on the entry songs for each player ( !ENTRYSONGS ) * Easy to understand config file * Low server load when using this plugin ------------------------ Versions -------------------------------- 1.0 - First release ------------------------ Download / Github -------------------------------- * GitHub LINK * Direct Download ------------------------ Notes -------------------------------- * I dont know if a plugin like this one exists, I made it for fun to learn new things. I hope you like it :wink: Wyświetl pełny artykuł
  19. Author: Timiditas (fork by Dragokas) Description: By default, SourceMod reloads plugin on map change only (in case its file modification time is changed). This plugin does the same each 2 seconds (adjustable). *New features: - Notify in chat about reloading, loading, unloading. - Show plugin load status in chat (only when first load attempt was un-successfull) - Can load newly added plugins (you must set it in ConVars!) - Can reload plugin even if previous attempt is failed - Scan in subfolders (recursively) - Ensure plugin is really loaded in case it was fault due to attempt to reload it in middle-time of file uploading - ConVars allowing to select delay (shorter, to track changes faster - for dev., or vice versa, longer delay to decrese CPU load - for production server) - More optimized. Commands: Nothing Settings (ConVars): cfg/sourcemod/sm_autoreload.cfg sm_autoreload_delay - def.: 2.0 - Delay between updates (in sec.) sm_autoreload_track_new - def.: 0 - Do we need to check for new plugin files appearing? (1 - Yes, 0 - No) sm_autoreload_show_info - def.: 3 - Where to show info about reloaded plugin? (0 - Nowhere, 1 - Server, 2 - Chat, 3 - Both) Using:Place smx in "plugins" folder. Full changelog: 1.4 (13-Mar-2020) - Added better plugin deletion detection - ArrayLists are replaced by StringMap (for optimization) - some code and messages optimizaion. 1.3 (12-Mar-2020) - Added one more plugin reload attempt in case it was previously reloaded at the same moment as file uploading progress is not finished - Added displaying the status of reloaded plugin (if first attempt is failed). - Added recurse scanning into subdirectories - Added ability to track new files (activate it in "sm_autoreload_track_new" ConVar). By default, disabled to save performance. - Added displaying info in chat (can be disabled by "sm_autoreload_show_info" ConVar). Notice: you can also unload plugin by deleting the file or renaming extension e.g. into "plugin.smx.bak", or by moving it in "disabled" folder. 1.2 (22-Nov-2019) - Converted to a new syntax and methodmaps - Added ConVar "sm_autoreload_delay" - Some code optimizations 1.1 - Added command "sm plugins load" in case plugin is not loaded last time due to startup error 1.0 - Original version by Timiditas: https://forums.alliedmods.net/showthread.php?t=106320 Attached Files Get Plugin or Get Source (autoreload.sp - 8.6 KB) Wyświetl pełny artykuł
  20. if the player is spectator or die,he can see the other player's information such as name/steamid from their perspective,on a hubmessage. How to make it,please help me Przeczytaj cały wpis
  21. I have this plugin but, I want to change this plugin to client_authorized function. Can you edit please? PHP Code: #include <amxmodx> new iL_Cvar,iL_Cvar2; public plugin_init(){ register_plugin ("Naber", "1.0", "Berk"); iL_Cvar = register_cvar("amx_playercount","16"); iL_Cvar2 = register_cvar("amx_admincount","2"); set_cvar_num("sv_visiblemaxplayers",get_pcvar_num(iL_Cvar)+get_pcvar_num(iL_Cvar2)); } public client_putinserver(iP_ID){ new iL_Flag = get_user_flags(iP_ID),iL_LastProcess; new iL_Status = iL_Flag & ADMIN_RESERVATION ? 1:2; // client_print(iP_ID,print_chat,"%i",iL_Status); new sL_Players[32],iL_Num,iL_GetID,iL_PlayerFlags,iL_AdminCount,iL_PlayerCount; get_players(sL_Players,iL_Num); for(new i; i < iL_Num; i++){ iL_GetID = sL_Players[i]; iL_PlayerFlags = get_user_flags(iL_GetID); iL_PlayerFlags & ADMIN_RESERVATION ? (iL_AdminCount++):(iL_PlayerCount++); } // client_print(0,print_chat,"%i - %i",iL_AdminCount,iL_PlayerCount); switch(iL_Status){ case 1 : { if((iL_AdminCount > get_pcvar_num(iL_Cvar2)) && (iL_AdminCount > get_pcvar_num(iL_Cvar)+get_pcvar_num(iL_Cvar2))){ iL_LastProcess = 1; } } case 2 : { if(iL_PlayerCount > get_pcvar_num(iL_Cvar)){ iL_LastProcess = 1; } } } if(iL_LastProcess == 1){ server_cmd("kick #%d ^"Server is full^"",get_user_userid(iP_ID)); } } public client_connect(id){ set_cvar_num("sv_visiblemaxplayers",get_pcvar_num(iL_Cvar)+get_pcvar_num(iL_Cvar2)); } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang1055\\ f0\\ fs16 \n\\ par } */ Przeczytaj cały wpis
  22. "new userid[..] get_user_userid(index,userid)" "new userid = get_user_userid(index) " I know both of them do not work. How can I get the var of "userid" ? Przeczytaj cały wpis
  23. Auto Redirect Players This plugin allows you to automatically redirect player's to the server that you specify in the config. This is especially useful when you change server ip, and thus, players will automatically connect to the new server Installation: Place compiled plugin [redirect_AutoRedirect.smx] into the plugins folder [addons/sourcemod/plugins/] Requirements: SourceMod [Redirect] Core LobbySessionFixer Cvars: sm_redirect_server - server ip to which the player will automatically redirected [Default 192.168.0.1:27015] Path to the config - cfg/sourcemod/AutoRedirect.cfg [Config automatically will be created when plugin startup] Attached Files Get Plugin or Get Source (redirect_AutoRedirect.sp - 1.2 KB) redirect_AutoRedirect.smx (4.0 KB) Wyświetl pełny artykuł
  24. [ANY/?] Gravity Controller I've had this plugin on my laptop for past 2 years and never gotten around releasing it, so here it is. It should work on source games/servers, I've tested it on my own TF2 server back in the day. Features: Quote: - Easy to use quick menu if no arguments were supplied. - You can quick set the parameters through the command arguments. Syntax: sm_physics [client_side] [server_synced_entities] [entity_gravity] Arguments Explained: - client_side: Ragdolls and other entities not synced between other clients - server_synced_entities: Ammo packs/Weapons from which the location is synced between clients - entity_gravity: This is the same gravity you would normally set with sv_gravity console variable. Attached Files Get Plugin or Get Source (physics_controller.sp - 8.4 KB) Wyświetl pełny artykuł
  25. hi, I couldn't fix it Can anyone do that? PHP Code: #include <amxmodx> #include <amxmisc> #include <engine> #include <cstrike> #include <fakemeta> #include <hamsandwich> #include <sqlx> #include <fun> #include <xs> #include <cromchat> #define PLUGIN "CMD_new" #define VERSION "4.0" #define AUTHOR "AlferD" #define ADMINLEVEL ADMIN_KICK #define ADMINLEVELFULL ADMIN_IMMUNITY #define ADMINLEVELB ADMIN_BAN #define ADMINLEVELM ADMIN_MAP #define ADMINLEVELP ADMIN_PASSWORD new pAdminPassword; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR); register_dictionary("Match_Text.txt"); register_concmd("_Password", "mmPass"); register_concmd("_Ct_Name", "mmCt_Name"); register_concmd("_Trr_Name", "mmTrr_Name"); register_concmd("_Admin_Password", "mmAdmin_Password"); register_concmd("_Add_Admin", "mmAdd_Admin"); pAdminPassword = register_cvar("adminpassword", ""); //----------_Slash Command ( Say ) register_clcmd("say /trrname","Trr_Name",ADMINLEVEL); register_clcmd("say /ctname", "Ct_Name",ADMINLEVEL); register_clcmd("say /addadmin", "Admin_Password",ADMINLEVELFULL); register_clcmd("say /b0","b0",ADMINLEVEL); register_clcmd("say /b1", "b1",ADMINLEVEL); register_clcmd("say /f0","f0",ADMINLEVEL); register_clcmd("say /f1", "f1",ADMINLEVEL); register_clcmd("say /r","r",ADMINLEVEL); register_clcmd("say /r1", "r1",ADMINLEVEL); register_clcmd("say /r2", "r2",ADMINLEVEL); register_clcmd("say /a","amxmodmenu",ADMINLEVEL); register_clcmd("say /am","adminsmanager",ADMINLEVELFULL); register_clcmd("say /sxe","sxe_menu",ADMINLEVEL); register_clcmd("say /bm","ban_menu",ADMINLEVELB); register_clcmd("say /km","kick_menu",ADMINLEVEL); register_clcmd("say /ubm","unban_menu",ADMINLEVELB); register_clcmd("say /map","map_menu",ADMINLEVELM); register_clcmd("say /votemap","votemap",ADMINLEVELM); register_clcmd("say /all1","all1",ADMINLEVEL); register_clcmd("say /all0","all0",ADMINLEVEL); register_clcmd("say /live","live",ADMINLEVEL); register_clcmd("say /dust2","de_dust2",ADMINLEVELM); register_clcmd("say /inferno","de_inferno",ADMINLEVELM); register_clcmd("say /nuke","de_nuke",ADMINLEVELM); register_clcmd("say /tuscan","de_tuscan",ADMINLEVELM); register_clcmd("say /mirage","de_mirage",ADMINLEVELM); register_clcmd("say /train","de_train",ADMINLEVELM); register_clcmd("say /mix","mix",ADMINLEVEL); register_clcmd("say /warm","warm",ADMINLEVEL); register_clcmd("say /pub","pub",ADMINLEVEL); register_clcmd("say /p","puase",ADMINLEVEL); register_clcmd("say /g","gag",ADMINLEVEL); register_clcmd("say /t1","on_talk",ADMINLEVEL); register_clcmd("say /t0","off_talk",ADMINLEVEL); register_clcmd("say /v1","on_voice",ADMINLEVEL); register_clcmd("say /v0","off_voice",ADMINLEVEL); register_clcmd("say /s","swap",ADMINLEVEL); register_clcmd("say /pw","pw",ADMINLEVELP); register_clcmd("say /mpw","mpw",ADMINLEVELP); register_clcmd("say /nopw","no_pw",ADMINLEVELP); register_clcmd("say /pwall","pw_all",ADMINLEVELP); register_clcmd("say /team","team",ADMINLEVEL); register_clcmd("say /say0","say0",ADMINLEVEL); register_clcmd("say /say1","say1",ADMINLEVEL); register_clcmd("say /name0","name0",ADMINLEVEL); register_clcmd("say /name1","name1",ADMINLEVEL); register_clcmd("say /j1","join1",ADMINLEVEL); register_clcmd("say /j0","join0",ADMINLEVEL); register_clcmd("say /spec","spec",ADMINLEVEL); register_clcmd("say /kspec","kick_spec",ADMINLEVEL); register_clcmd("say /knf","knf",ADMINLEVEL); register_clcmd("say /knife","knf2",ADMINLEVEL); register_clcmd("say /knfr","knfr",ADMINLEVEL); register_clcmd("say /rev","rev",ADMINLEVEL); register_clcmd("say /ahelp","motd",ADMINLEVEL); //----------_Slash Command ( Say ) register_clcmd("say_team /trrname","Trr_Name",ADMINLEVEL); register_clcmd("say_team /ctname", "Ct_Name",ADMINLEVEL); register_clcmd("say_team /addadmin", "Admin_Password",ADMINLEVELFULL); register_clcmd("say_team /b0","b0",ADMINLEVEL); register_clcmd("say_team /b1","b1",ADMINLEVEL); register_clcmd("say_team /f0","f0",ADMINLEVEL); register_clcmd("say_team /f1","f1",ADMINLEVEL); register_clcmd("say_team /r","r",ADMINLEVEL); register_clcmd("say_team /r1","r1",ADMINLEVEL); register_clcmd("say_team /r2","r2",ADMINLEVEL); register_clcmd("say_team /a","amxmodmenu",ADMINLEVEL); register_clcmd("say_team /am","adminsmanager",ADMINLEVELFULL); register_clcmd("say_team /sxe","sxe_menu",ADMINLEVEL); register_clcmd("say_team /bm","ban_menu",ADMINLEVELB); register_clcmd("say_team /km","kick_menu",ADMINLEVEL); register_clcmd("say_team /ubm","unban_menu",ADMINLEVELB); register_clcmd("say_team /map","map_menu",ADMINLEVELM); register_clcmd("say_team /votemap","votemap",ADMINLEVELM); register_clcmd("say_team /all1","all1",ADMINLEVEL); register_clcmd("say_team /all0","all0",ADMINLEVEL); register_clcmd("say_team /live","live",ADMINLEVEL); register_clcmd("say_team /dust2","de_dust2",ADMINLEVELM); register_clcmd("say_team /inferno","de_inferno",ADMINLEVELM); register_clcmd("say_team /nuke","de_nuke",ADMINLEVELM); register_clcmd("say_team /tuscan","de_tuscan",ADMINLEVELM); register_clcmd("say_team /mirage","de_mirage",ADMINLEVELM); register_clcmd("say_team /train","de_train",ADMINLEVELM); register_clcmd("say_team /mix","mix",ADMINLEVEL); register_clcmd("say_team /warm","warm",ADMINLEVEL); register_clcmd("say_team /pub","pub",ADMINLEVEL); register_clcmd("say_team /p","puase",ADMINLEVEL); register_clcmd("say_team /g","gag",ADMINLEVEL); register_clcmd("say_team /t1","on_talk",ADMINLEVEL); register_clcmd("say_team /t0","off_talk",ADMINLEVEL); register_clcmd("say_team /v1","on_voice",ADMINLEVEL); register_clcmd("say_team /v0","off_voice",ADMINLEVEL); register_clcmd("say_team /s","swap",ADMINLEVEL); register_clcmd("say_team /pw","pw",ADMINLEVELP); register_clcmd("say_team /mpw","mpw",ADMINLEVELP); register_clcmd("say_team /nopw","no_pw",ADMINLEVELP); register_clcmd("say_team /pwall","pw_all",ADMINLEVELP); register_clcmd("say_team /team","team",ADMINLEVEL); register_clcmd("say_team /say0","say0",ADMINLEVEL); register_clcmd("say_team /say1","say1",ADMINLEVEL); register_clcmd("say_team /name0","name0",ADMINLEVEL); register_clcmd("say_team /name1","name1",ADMINLEVEL); register_clcmd("say_team /j1","join1",ADMINLEVEL); register_clcmd("say_team /j0","join0",ADMINLEVEL); register_clcmd("say_team /spec","spec",ADMINLEVEL); register_clcmd("say_team /kspec","kick_spec",ADMINLEVEL); register_clcmd("say_team /knf","knf",ADMINLEVEL); register_clcmd("say_team /knife","knf2",ADMINLEVEL); register_clcmd("say_team /knfr","knfr",ADMINLEVEL); register_clcmd("say_team /rev","rev",ADMINLEVEL); register_clcmd("say_team /ahelp","motd",ADMINLEVEL); } public b1(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("abh_on 1") } } public b0(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("abh_on 0") } } public f1(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("mp_friendlyfire 1") } } public f0(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("mp_friendlyfire 0") } } public r(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("sv_restart 1"); } } public r1(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("sv_restart 1"); } } public r2(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("sv_restart 2"); } } public amxmodmenu(id, level, cid) { if(cmd_access(id,level, cid, 1)) { client_cmd(id,"amxmodmenu"); } } public adminsmanager(id, level, cid) { if(cmd_access(id,level, cid, 1)) { client_cmd(id,"adminsmanager"); } } public sxe_menu(id, level, cid) { if(cmd_access(id,level, cid, 1)) { client_cmd(id,"amx_sxe_menu"); } } public ban_menu(id, level, cid) { if(cmd_access(id,level, cid, 1)) { client_cmd(id,"amx_banmenu"); } } public kick_menu(id, level, cid) { if(cmd_access(id,level, cid, 1)) { client_cmd(id,"amx_kickmenu"); } } public unban_menu(id, level, cid) { if(cmd_access(id,level, cid, 1)) { client_cmd(id,"amx_unbanmenu"); } } public map_menu(id, level, cid) { if(cmd_access(id,level, cid, 1)) { client_cmd(id,"amx_mapmenu"); } } public votemap(id, level, cid) { if(cmd_access(id,level, cid, 1)) { client_cmd(id,"amx_votemapmenu"); } } public all1(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("sv_allowdownload 1"); server_cmd("sv_allowupload 1"); server_cmd("sv_voiceenable 1"); server_cmd("sv_alltalk 1"); server_cmd("sv_nosay 0"); server_cmd("sv_chooseteam 1"); server_cmd("tc_enabled 0"); server_cmd("tjm_switch_team 1"); server_cmd("nnc_max_changes 100"); } } public all0(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("sv_allowdownload 0"); server_cmd("sv_allowupload 0"); server_cmd("sv_voiceenable 1"); server_cmd("sv_alltalk 0"); server_cmd("sv_nosay 1"); server_cmd("sv_chooseteam 0"); server_cmd("nnc_max_changes 0"); server_cmd("tc_enabled 1"); server_cmd("tjm_switch_team 0"); } } public live(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("sv_restart 1"); set_task(1.0, "live1") } } public live1(id) { server_cmd("sv_restart 1"); set_task(1.0, "live2"); } public live2(id) { server_cmd("sv_restart 1"); set_task(1.0, "live3"); } public live3(id) { server_cmd("amx_matchstart"); print_color(0, "%L %L",id, "KG",id, "LIVEE") print_color(0, "%L %L",id, "KG",id, "LIVEEE") print_color(0, "%L %L",id, "KG",id, "LIVEE") print_color(0, "%L %L",id, "KG",id, "LIVEEE") set_task(1.0, "hud"); } public hud(id) { set_hudmessage(255, 0, 0, -1.0, 0.31, 0, 6.0, 5.0) show_hudmessage(0, "[The Match Started]") client_cmd(id,"hudlive"); } public dust2(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("amx_map de_dust2"); print_color(id, "%L %L",id, "KG",id, "DUST2"); } } public inferno(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("amx_map de_inferno"); print_color(id, "%L %L",id, "KG",id, "INFERNO"); } } public dnuke(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("amx_map de_nuke"); print_color(id, "%L %L",id, "KG",id, "NUKE"); } } public tuscan(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("amx_map de_tuscan"); print_color(id, "%L %L",id, "KG",id, "TUSCAN"); } } public mirage(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("amx_map de_mirage"); print_color(id, "%L %L",id, "KG",id, "MIRAGE"); } } public train(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("amx_map de_train"); print_color(id, "%L %L",id, "KG",id, "TRAIN"); } } public warm(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("mp_autokick 0"); server_cmd("mp_fadetoblack 0"); server_cmd("mp_autocrosshair 0"); server_cmd("mp_autoteambalance 0"); server_cmd("mp_buytime 0.25"); server_cmd("mp_consistency 1"); server_cmd("mp_c4timer 35"); server_cmd("mp_flashlight 1"); server_cmd("mp_forcechasecam 2"); server_cmd("mp_forcecamera 2"); server_cmd("mp_footsteps 1"); server_cmd("mp_freezetime 0"); server_cmd("mp_friendlyfire 0"); server_cmd("mp_limitteams 0"); server_cmd("mp_maxrounds 0"); server_cmd("mp_roundtime 1.45"); server_cmd("mp_timelimit 0"); server_cmd("mp_tkpunish 0"); server_cmd("mp_friendly_grenade_damage 0"); server_cmd("mp_startmoney 16000"); server_cmd("sv_allowdownload 1"); server_cmd("sv_allowupload 1"); server_cmd("sv_voiceenable 1"); server_cmd("sv_alltalk 1"); server_cmd("sv_proxies 1"); server_cmd("sv_cheats 0"); server_cmd("sv_gravity 800"); server_cmd("allow_spectators 1"); server_cmd("sys_ticrate 10000"); server_cmd("sv_timeout 65"); server_cmd("sv_aim 0"); server_cmd("statsme_off"); server_cmd("sv_password ^"^""); server_cmd("amx_matchstop"); server_cmd("sv_restart 1"); server_cmd("amx_status 1"); server_cmd("amx_status2 1"); server_cmd("exec hostname_warm.cfg") print_color(0, "%L %L",id, "KG",id, "WARM1"); } } public pub(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("mp_roundtime 2.500000"); server_cmd("mp_c4timer 35"); server_cmd("mp_buytime 0.250000"); server_cmd("mp_freezetime 4"); server_cmd("mp_startmoney 800"); server_cmd("sv_alltalk 0"); server_cmd("sv_voiceenable 0"); server_cmd("sv_restart 1"); server_cmd("amx_status 1"); server_cmd("amx_status2 1"); print_color(0, "%L %L",id, "KG",id, "PUBLIC1") } } public mix(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("mp_autokick 0") server_cmd("mp_autocrosshair 0") server_cmd("mp_autoteambalance 0") server_cmd("mp_buytime 0.25") server_cmd("mp_consistency 1") server_cmd("mp_c4timer 35") server_cmd("mp_fadetoblack 0") server_cmd("mp_flashlight 1") server_cmd("mp_forcechasecam 2") server_cmd("mp_forcecamera 2") server_cmd("mp_footsteps 1") server_cmd("mp_freezetime 15") server_cmd("mp_friendlyfire 1") server_cmd("mp_hostagepenalty 0") server_cmd("mp_limitteams 10") server_cmd("mp_logecho 1") server_cmd("mp_logdetail 3") server_cmd("mp_logfile 1") server_cmd("mp_logmessages 1") server_cmd("mp_maxrounds 0") server_cmd("mp_playerid 1") server_cmd("mp_roundtime 1.75") server_cmd("mp_timelimit 0") server_cmd("mp_tkpunish 0") server_cmd("mp_winlimit 0") server_cmd("sv_aim 0") server_cmd("sv_airaccelerate 10") server_cmd("sv_airmove 1") server_cmd("sv_allowdownload 0") server_cmd("sv_allowupload 0") server_cmd("sv_alltalk 0") server_cmd("sv_cheats 0") server_cmd("sv_clienttrace 1") server_cmd("sv_clipmode 0") server_cmd("sv_friction 4") server_cmd("sv_gravity 800") server_cmd("sv_lan_rate 25000") server_cmd("sv_maxrate 25000") server_cmd("sv_maxspeed 320") server_cmd("sv_maxunlag 0.5") server_cmd("sv_maxupdaterate 101") server_cmd("sv_minupdaterate 20") server_cmd("sv_minrate 0") server_cmd("sv_proxies 1") server_cmd("sv_send_logos 1") server_cmd("sv_send_resources 1") server_cmd("sv_stepsize 18") server_cmd("sv_stopspeed 75") server_cmd("sv_unlag 1") server_cmd("sv_voiceenable 1") server_cmd("sv_unlagsamples 1") server_cmd("sv_unlagpush 0") server_cmd("sys_ticrate 10000") server_cmd("allow_spectators 1") server_cmd("decalfrequency 60") server_cmd("edgefriction 2") server_cmd("host_framerate 0") server_cmd("log on pausable 0") server_cmd("mp_startmoney 800") server_cmd("mp_friendlyfire 1") server_cmd("amx_status 0"); server_cmd("amx_status2 0"); server_cmd("exec hostname_mix.cfg") client_cmd(id,"amx_votemapmenu"); print_color(0, "%L %L",id, "KG",id, "MIX1") } } public puase(id, level, cid) { if(cmd_access(id,level, cid, 1)) { client_cmd(id,"amx_pause"); } } public gag(id, level, cid) { if(cmd_access(id,level, cid, 1)) { client_cmd(id,"amx_gagmenu"); } } public talk1(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("sv_alltalk 1"); } } public talk2(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("sv_alltalk 2"); } } public talk3(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("sv_alltalk 3"); } } public on_voice(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("sv_voiceenable 1"); } } public off_voice(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("sv_voiceenable 0"); } } public swap(id, level, cid) { if(cmd_access(id,level, cid, 1)) { new players[32], num get_players(players, num) new player for(new i = 0; i < num; i++) { player = players[i] if(is_user_connected(player)) { switch( cs_get_user_team( player ) ) { case CS_TEAM_T: cs_set_user_team( player, CS_TEAM_CT ) case CS_TEAM_CT: cs_set_user_team( player, CS_TEAM_T ) } } } server_cmd("sv_restart 1"); } } public mpw(id, level, cid) { if(cmd_access(id,level, cid, 1)) { client_cmd(id,"messagemode _Password") } } public mmPass(id, level, cid) { if(cmd_access(id,level, cid, 1)) { new szTemp[64] read_args(szTemp, charsmax(szTemp)) server_cmd("sv_password %s",szTemp); } } public pw(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("sv_password 88") print_color(id, "%L",id, "PWID") } } public no_pw(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("sv_password ^"^""); print_color(0, "%L",id, "NOPW1"); } } public pw_all(id, level, cid) { if(cmd_access(id,level, cid, 1)) { new cvar[16] get_cvar_string("sv_password", cvar, 15) print_color(0, "%L",id, "PWALL1",cvar) } } public Trr_Name(id, level, cid) { if(cmd_access(id,level, cid, 1)) { client_cmd(id,"messagemode _Trr_Name") } } public mmTrr_Name(id, level, cid) { if(cmd_access(id,level, cid, 1)) { new szTemp[64] read_args(szTemp, charsmax(szTemp)); server_cmd("amx_trrname %s",szTemp); } } public Admin_Password(id, level, cid) { if(cmd_access(id,level, cid, 1)) { client_cmd(id,"messagemode _Admin_Password") } } public mmAdmin_Password(id, level, cid) { if(cmd_access(id,level, cid, 1)) { new szTemp[64] read_args(szTemp, charsmax(szTemp)); server_cmd("adminpassword %s",szTemp); set_task(1.0, "Add_Admin") } } public Add_Admin(id) { client_cmd(id,"messagemode _Add_Admin"); } public mmAdd_Admin(id, level, cid) { if(cmd_access(id,level, cid, 1)) { new szTemp[64] new szAdminPassword[32] get_pcvar_string(pAdminPassword, szAdminPassword, charsmax(szAdminPassword)); read_args(szTemp, charsmax(szTemp)) server_cmd("amx_addadmin %s cdefghijklu %s",szTemp,szAdminPassword); } } public Ct_Name(id, level, cid) { if(cmd_access(id,level, cid, 1)) { client_cmd(id,"messagemode _Ct_Name") } } public mmCt_Name(id, level, cid) { if(cmd_access(id,level, cid, 1)) { new szTemp[64] read_args(szTemp, charsmax(szTemp)) server_cmd("amx_ctname %s",szTemp); } } public team(id, level, cid) { if(cmd_access(id,level, cid, 1)) { client_cmd(id,"amx_teammenu") } } public say0(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("tc_enabled 1") } } public say1(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("tc_enabled 0") } } public name0(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("amx_noname 1") } } public name1(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("amx_noname 0") } } public join1(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("tjm_switch_team 1") } } public join0(id, level, cid) { if(cmd_access(id,level, cid, 1)) { server_cmd("tjm_switch_team 0") } } public spec(id, level, cid) { if(cmd_access(id,level, cid, 1)) { { new players[32], pnum, tempid get_players(players, pnum) for( new i; i<pnum; i++ ) { tempid = players[i] user_kill(tempid) cs_set_user_team(tempid, CS_TEAM_SPECTATOR) } } } } public kick_spec(id, level, cid) { if(cmd_access(id,level, cid, 1)) { new Players[32], iCount; get_players(Players, iCount, "e", "SPECTATOR"); if (iCount > 0) { for (new k = 0; k < iCount; k++) { server_cmd("kick #%d", get_user_userid(Players[k])); } server_exec(); } } } public knf(id, level, cid) { if(cmd_access(id,level, cid, 1)) { client_cmd(id,"amx_knife"); } } public knf2(id, level, cid) { if(cmd_access(id,level, cid, 1)) { client_cmd(id,"amx_knife"); } } public knfr(id, level, cid) { if(cmd_access(id,level, cid, 1)) { client_cmd(id,"amx_knife_restart"); } } public rev(id, level, cid) { if(cmd_access(id,level, cid, 1)) { client_cmd(id,"amx_revive @ 100 0"); } } public motd(id, level, cid) { if(cmd_access(id,level, cid, 1)) { show_motd(id, "motd.txt", "Tittle"); } } stock print_color(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[i])) { message_begin(MSG_ONE_UNRELIABLE, get_user_msgid("SayText"), _, players[i]); write_byte(players[i]); write_string(msg); message_end(); } } } return PLUGIN_HANDLED; } Code: //// cmd.sma // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<28> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<29> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<47> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<75> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<76> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<77> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<78> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<87> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<104> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<125> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<126> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<132> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<133> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<134> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<135> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<144> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<277> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<283> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<293> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<299> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<606> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<623> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<633> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<642> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<669> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<687> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<689> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<704> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<723> : warning 217: loose indentation // C:\server\Match\cstrike\addons\amxmodx\scripting\cmd.sma<815> : warning 217: loose indentation // Header size 2204 bytes // Code size 26492 bytes // Data size 23108 bytes // Stack/heap size 16384 bytes; estimated max. usage=781 cells <3124 bytes> // Total requirements 68188 bytes // // 30 Warnings. // Done. // // Compilation Time: 1 sec //------------------------------------------------- Przeczytaj cały wpis
×
×
  • Dodaj nową pozycję...