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

    28645
  • Dołączył

  • Ostatnia wizyta

    nigdy
  • Wygrane w rankingu

    11

Treść opublikowana przez MYGO.pl

  1. Hello! I have problem with bazooka new modes 1.6 in my zombie plague 5.0.8. When I'm shooting my rocket, the rocket doesn't disappear when it touch the zombie or walls. It want to kill zombie to 0hp and the disappears. Someone can help me? Code: L 09/20/2023 - 17:30:08: [AMXX] Displaying debug trace (plugin "zp_bazooka_new.amxx") L 09/20/2023 - 17:30:08: [AMXX] Run time error 10: native error (native "get_pcvar_num") L 09/20/2023 - 17:30:08: [AMXX] [0] zp_bazooka_new.sma::baz_damage (line 557) L 09/20/2023 - 17:30:08: [AMXX] [1] zp_bazooka_new.sma::fw_touch (line 431) Attached Files Get Plugin or Get Source (zp_bazooka_new.sma - 22.2 KB) Przeczytaj cały wpis
  2. Airshot 2.0 An updated Airshot plugin originally released by Watch: https://forums.alliedmods.net/showth...hlight=airshot Requirements: AMXX 1.8.3 or above (HUD Messages are sent using Director HUD Messages) Install the .wav sounds to: tfc/sound/airshot New Features: Added colour HUD Messages - HUD Messages will be the team colours of the owner and victim. Added mid-air and double airshot detection - If the owner is also in the air, a mid-airshot is detected. - If the owner hits the same victim twice before they hit the ground, a double is detected. Added quake sounds for each airshot - Airshot = Ownage - Mid-air = Dominating - Doubled = Holy shit! Added more gore! - If the victim is killed by an airshot, Extra gibs and blood will be rendered. Notes (Bugs): Only 3 airshots can be printed on the screen at the same time and will stack with the most recent at the bottom, then reset to the top when all are cleared. Player names are limited to 20 characters, Longer names will be shortened. If another player airshots just after one, then that victim becomes the new double detection victim and the first will be ignored. HAVE FUN! :D Attached Files Get Plugin or Get Source (airshot2.sma - 13.4 KB) Airshot2.zip (309.1 KB) Przeczytaj cały wpis
  3. CHAPTER 1: RULES 1. READ ALL DESCRIPTION BEFORE ASKING. I will not answer the questions with answers mentioned below. 2. All fixes I made and use by myself, they are fine for me, may not be fine for you and that's NOT MY PROBLEM. 3. Plugins list I made as AMATEUR for us, AMATEURS, in servers development you as a pro can do much better, of course. CHAPTER 2: STRIPPER In archive you will find configs for Stripper:Source with approximately 200 fixes of bugs/glitches for COOP maps. 99% of them are places, where player gets out of NavMesh or shortcut game events, they are blocked with invisible wall(env_playerblocker) or death triggers. Other 1% are subjective and will be listed here: No Mercy map 4,5: All zombies that fall down from upper floor will be teleported back and attack again. Crash Course map 2: Shortcut near alarm car closed like in L4D2. Death Toll map 5: Added sniper spawn for retaining the concept of final. Dead Air map 3: Fixed molotov throwing bug. Dead Air map 5: Airplane propeller damages and kill. Blood Harvest map 5: Added minigun for retaining the concept of final. The Sacrifice map 3: After bridge start rising, players cant leave before it will stop. Minigun spawns are randomized with mounted gun. Any fix is signed and has a screenshot or link on YouTube to make your edtiting and understanding easier. Also it contains plugin that makes block visible if it is aimed with sm_show command, might be usefull. CHAPTER 3: PLUGINS Here will be listed plugins, supposed to fix some game issues wich I personaly check and use: [L4D] Health Exploit Fix by Dragokas. [L4D] Survivor Spawn Position Fix by Dragokas. [L4D & L4D2]Witch fixes by Lux. [L4D1 & L4D2] Weapon Prop Give Fix by Marttt. [L4D1 & L4D2]Stop air revive fix by Lux. [L4D1 & L4D2] Revive Reload Interrupt Fix by HarryPotter. [L4D1 & L4D2] Choose Door Fix for Incapacitated Survivors by Marttt. [L4D/L4D2] Witch Vision Fix by cravenge. [L4D & L4D2] Exploit Fix - Unlimited Grenades by Silvers. [L4D & L4D2] Various Exploit Fixes by Silvers. [L4D/2] Minigun fix by Dosergen. [L4D] Water Speed) by Beatles. TickrateFixes by Sir, Griffin, HarryPotter. [L4D & L4D2] witch smart attack behind by HarryPotter. Tank Punch Ceiling Stuck Fix by Tabun, Visor, HarryPotter. [L4D & 2] Smart AI Rock by Forgetest, CanadaRox (Original author). [L4D & 2] Fix Common Shove by Forgetest. [L4D & L4D2] Saferoom Door Spam Protection by Silvers. CHAPTER 4: REQUESTS I'm interested only in a few cases to develop in the future, so all others requests will be ignored, sorry. The cases are: 1. Add fixes to vs maps. Let me know if it is necessary, it will hurry me up. 2. Change some fixes with NavMesh editing, may be add some new ways for ai. 3. Fix bugs that I don't know. If you will shortly describe and attach the screenshot I will be grateful. CHAPTER 5: GRATITUDE Honor and glory for contribution for authors mentioned above and all Alliedmods community, you are doing a great job. Special thanks to my friend Ĵōḩń˳Ėŗŕōŗツ, for helping with screenshots and code cleaning. DOWNLOADLINK, plugin duplicated just for the record. Attached Files Get Plugin or Get Source (test.sp - 2.0 KB) test.smx (5.1 KB) Wyświetl pełny artykuł
  4. I'm using BAILOPAN's CSDM mod. This is the mod i'm talking about: https://forums.alliedmods.net/showthread.php?t=79583 So, when i spawn or respawn, i get the menu to choose weapons from, but no grenades are given to me or other players. I saw than in other CSDM servers, you get your primary and secondary weapons and grenades like the HE grenade. I want to make my server give the HE grenade to players once they get their primary and secondary weapons. Is the HE grenade in CSDM enabled by the built-in settings of the CSDM mod, or by the addition of a third-party plugin? Przeczytaj cały wpis
  5. -- This gamemode is designed with respawning in mind! -- To turn on respawning, set the following commands: mp_respawn_on_death_ct 1 mp_respawn_on_death_t 1 -- DESCRIPTION -- This is a custom gamemode that does the following things: - Switches a players team after death (Meaning if a CT dies, they're automatically turned into a Terrorist and vice versa) - If one team is left without any players, the opposing team wins and gains a point For example: If the CTs eliminate all the Terrorists and there are no longer any players left on the Terrorist team, the CTs win the round. - Balances the teams next round, so that team sizes are equal -- CVARS -- None, for now. I'll eventually add a Cvar that can toggle the gamemode on or off Attached Files Get Plugin or Get Source (deathteam.sp - 1.6 KB) deathteam.smx (3.5 KB) Wyświetl pełny artykuł
  6. So, i installed BAILOPAN's CSDM mod. Now, i need a plugin that gives you bonus HP per kill. In other CSDM servers, i saw that when you kill another player, your screen becomes blueish for around 1 second or even less and then you get X health points (depending on the cvar). I don't know if the function in question is built-in Warcraft mods only, but i think it's possible to add it as a third-party plugin to my CSDM mod, too. Przeczytaj cały wpis
  7. Looking for long-term Developer, contact me in PM for more informations :) Przeczytaj cały wpis
  8. This is a plugin that creates some halloween atmosphere. List of features (You can preview some of them on github page) - Health/Ammo pickup sounds - Spray sound (boo!) - Spooky sounds on connect - Round start sounds - Halloween soundscape replacement (don't work on halloween maps) - Round end sounds replacement (like on Helltower) - Halloween weapon/cosmetic spells - Zombie souls - Zombie viewmodels - Tombstone on death - Projectile model replacement (no collision changes) - Skybox and color correction changes (don't work on halloween maps) - Resupply locker and ammopack model changes - Objective capture and static effects 🡺 Source Code on GitHub Download 🡺 Download Latest Release Wyświetl pełny artykuł
  9. Cykarblast is a server-side SourceMod plugin for Team Fortress 2 that allows a Heavy taunting with the Road Rager to blast bullets out of the car's turret. Damage, bullet spread, and crit chances are configurable. Friendly fire via mp_friendlyfire is also supported. ConVars: Code: sm_cykarblast_bullet_damage [Default: 15.0] - Bullet base damage sm_cykarblast_bullet_spread [Default: 0.04] - Bullet spread sm_cykarblast_crit_chance [Default: 0.04] - Bullet critical chanceDownload via GitHub Repository: - Source - Plugin Wyświetl pełny artykuł
  10. Quote: warmup.sma(20) : error 029 invalid expression, assumed zero warmup.sma(20) : warning 215: expression has no effect warmup.sma(20) : error 029 invalid expression, assumed zero warmup.sma(20) : error 029 invalid expression, assumed zero warmup.sma(20) : fatal error 107: too many error messages on one line PHP Code: #include <amxmodx> #include <fun> new WarmupTime = 60; // Duración del calentamiento en segundos new WarmupMusic[] = "music/warmup.mp3"; // Ruta de la música de calentamiento public plugin_init() { register_plugin("warmup", "1.0", "a stranger"); register_clcmd("warmup", "cmd_warmup"); } public cmd_warmup(id) { new time = get_user_weapon(id); // Obtenemos el arma actual del jugador if (time == CSW_AWP || time == CSW_AK47 || time == CSW_M4A1) { set_task(WarmupTimer, 1000, _, id); client_print(id, print_console, "¡Calentamiento iniciado!"); // Reproducir música client_cmd(id, "mp3 play ", WarmupMusic, " 1"); } else { client_print(id, print_console, "No se puede realizar el calentamiento con esta arma."); } } public WarmupTimer(id) { if (WarmupTime > 0) { client_print(id, print_chat, "¡Tiempo restante de calentamiento: ", WarmupTime, " segundos!"); WarmupTime--; set_task(WarmupTimer, 1000, _, id); } else { client_print(id, print_chat, "¡Calentamiento finalizado!"); // Detener música gradualmente client_cmd(id, "mp3 fadeout 5"); } }#include <amxmodx> #include <fun> new WarmupTime = 60; // Duración del calentamiento en segundos new WarmupMusic[] = "music/warmup.mp3"; // Ruta de la música de calentamiento public plugin_init() { register_plugin("warm-up", "1.0", "a stranger"); register_clcmd("warmup", "cmd_warmup"); } public cmd_warmup(id) { new time = get_user_weapon(id); // Obtenemos el arma actual del jugador if (time == CSW_AWP || time == CSW_AK47 || time == CSW_M4A1) { set_task(WarmupTimer, 1000, _, id); client_print(id, print_console, "¡Calentamiento iniciado!"); // Reproducir música client_cmd(id, "mp3 play ", WarmupMusic, " 1"); } else { client_print(id, print_console, "No se puede realizar el calentamiento con esta arma."); } } public WarmupTimer(id) { if (WarmupTime > 0) { client_print(id, print_chat, "¡Tiempo restante de calentamiento: ", WarmupTime, " segundos!"); WarmupTime--; set_task(WarmupTimer, 1000, _, id); } else { client_print(id, print_chat, "¡Calentamiento finalizado!"); // Detener música gradualmente client_cmd(id, "mp3 fadeout 5"); } }#include <amxmodx> #include <fun> new WarmupTime = 60; // Duración del calentamiento en segundos new WarmupMusic[] = "music/warmup.mp3"; // Ruta de la música de calentamiento public plugin_init() { register_plugin("warm-up", "1.0", "a stranger"); register_clcmd("warmup", "cmd_warmup"); } public cmd_warmup(id) { new time = get_user_weapon(id); // Obtenemos el arma actual del jugador if (time == CSW_AWP || time == CSW_AK47 || time == CSW_M4A1) { set_task(WarmupTimer, 1000, _, id); client_print(id, print_console, "¡Calentamiento iniciado!"); // Reproducir música client_cmd(id, "mp3 play ", WarmupMusic, " 1"); } else { client_print(id, print_console, "No se puede realizar el calentamiento con esta arma."); } } public WarmupTimer(id) { if (WarmupTime > 0) { client_print(id, print_chat, "¡Tiempo restante de calentamiento: ", WarmupTime, " segundos!"); WarmupTime--; set_task(WarmupTimer, 1000, _, id); } else { client_print(id, print_chat, "¡Calentamiento finalizado!"); // Detener música gradualmente client_cmd(id, "mp3 fadeout 5"); } } Przeczytaj cały wpis
  11. I have a plugin (I think) on my cs 1.6 server that every few minutes it randomly says in the chat "[Server prefix/tag] 2 3" and its really annoying and I tried going through every single SMA or code of the plugins I have on my servers and I couldnt find it anywhere. Does anyone know what to do? Przeczytaj cały wpis
  12. Marketing analytics is the process of using data analysis tools and methods to measure and evaluate the effectiveness of marketing activities. It provides the information needed to understand and optimize marketing strategies and campaigns, from identifying the determinants of success to measuring and forecasting performance. Here are some ways to analyze marketing effectively: 1. Set measurable goals: First, identify clear and measurable marketing goals. This could be increasing sales, increasing website traffic, increasing conversion rates, or any other goal that makes sense for your business. 2. Collect data: Collect data from different sources such as web analytics tools, social networking platforms, email marketing, or CRM systems. Make sure you gather enough information to understand and evaluate your marketing activities. 3. Data analysis: Use data analysis tools and methods to understand and extract important information. This includes performing quantitative and qualitative analyzes to find patterns, trends, and relationships in data. 4. Measure effectiveness: Use indicators and metrics to measure the effectiveness of marketing activities. For example, you can track conversion rates, traffic, social media engagement, or revenue to evaluate the effectiveness of your campaign. 5. Make data-driven decisions: Based on data analysis and evaluation, use the information to optimize your marketing strategy. This may include tweaking campaigns, directing resources to more effective channels, or changing other factors to achieve better results. Most importantly, marketing analytics requires continuous and skillful data collection and analysis to produce meaningful and practical information. Przeczytaj cały wpis
  13. This plugin aims to recreate Quake Live in CS:GO. It is recommended to use a fresh server for this plugin, since its a bit more than just copying a .smx file. For more info, screenshots, instructions and documentation see the GitHub readme aswell as the wiki. Github Wyświetl pełny artykuł
  14. Virtual Weapon Slots - v0.0.1, posted at : 12/09/2023 This is a beta version of my new project. Now you can use more than 2 of the same weapons. For example, you can have 2 special AKs or AWPs. Even if you drop your AK, when you pick it up you will be able to reopen the menu and switch your AK. Short Video Include File Code: #if defined _virtual_weapon_slots_included #endinput #endif #define _virtual_weapon_slots_included /** * Register Weapons * * @param szName Name on Menu * @param iCSW CSW_ of weapon * @return An internal Weapon Index */ native virtual_weapon_register(const szName[], iCSW) /** * Give weapon * * @param Id Player Index * @param iSlot Weapon Internal Index * @param iCSW Weapon default ID */ native virtual_weapon_give(id, iSlot, iCSW) /** * Remove Weapon * * @param Id Player Index * @param iSlot Weapon Internal Index * @param iCSW Weapon default ID */ native virtual_weapon_take(id, iSlot, iCSW) /** * Checks if user has the weapon (Holding or not holding) * * @param Id Player Index * @param iSlot Weapon Internal Index */ native virtual_weapon_user_has(id, iSlot) /** * Gets the Weapon's Internal Index * * @param Id Player Index */ native Float:virtual_weapon_get_current(id) Despite this is not 100% finish, the main point of the plugin is working. And for that reason i am releasing it as a beta version so you can start using it. Attached Files Get Plugin or Get Source (virtual_weapon_slots.sma - 6.2 KB) virtual_weapon_slots.inc (969 Bytes) virtual_weapon_slots.txt (589 Bytes) Przeczytaj cały wpis
  15. Find a plugin that allows admins to force people to turn off music I just want stopsound to work in the people console Does anyone know of this plugin? Hopefully a plugin that works for TF2 games Przeczytaj cały wpis
  16. MYGO.pl

    RSSDelete

    Delete Przeczytaj cały wpis
  17. MYGO.pl

    RSSCS 1.6 Clan

    Hello guys, I'm looking for a plugin to do this: The owner of the server can create a clan and put a clan leader and a clan tag The clan leader can do this: /claninvite - invite other people in his clan /clanuninvite - remove people from clan Members can do this: /c - clan chat It would really help me. I really need it. Thanks in advance. Przeczytaj cały wpis
  18. Hi guys, I'm looking for 3 plugins, I've been looking for a long time and I can't find them. The first is the complement of giving 1 AWP weapon per team to random players, also to be able to give the AWP requires a minimum of 10 players. The second is an advanced statistics plugin that shows hud and chat messages to players about their damage, etc. The third is the complement to improve the top15, the most updated ranking design Thanks and sorry for the inconvenience Przeczytaj cały wpis
  19. Hello can you make a plugin for ZP 5.0.8 that would respawn the last person or zombie 4 times? After that, he must die like everyone else and the round ends do i have to pay money $ or do you help for free? Przeczytaj cały wpis
  20. Sorry for my English, I use a translator. I've looked for plugins on the topic but I need something simpler. I need a user registration system that stores along with statistics (ranking, top 15) in a database for later integration into a website. Przeczytaj cały wpis
  21. Hello ! Can you add to this free vip event plugin a menu with weapons free for all players ; AK47+DEAGLE+HE SMOKE FLASHBANG M4A1+DEAGLE+HE SMOKE FLASHBANG Also for gold vip with flag access "t" AWP+DEAGLE + HE SMOKE FLASHBANG Thanks in advance!! #include <amxmodx> #include <amxmisc> const TASK_ID = 258; new task_set = 0; new inceput, sfarsit, flag_vip, h public plugin_init() { register_plugin("Dam la saraci vip", "3.0", "cyby // editat de LOL") register_dictionary("vip_free.txt") inceput = register_cvar( "vip_start", "01" ); sfarsit = register_cvar( "vip_end", "23" ) flag_vip = register_cvar( "vip_flag", "524288" ) } public client_putinserver(id) { new o, m, s; time(o, m, s) if(o >= get_pcvar_num( inceput ) && o < get_pcvar_num( sfarsit )) { if( get_user_flags(id) != get_pcvar_num( flag_vip ) ) { set_user_flags(id, get_pcvar_num( flag_vip )) set_task(3.0, "mesaj", id) set_task(1.0, "hud_mess", _, _, _, "b") set_task(60.0, "incepe", id) set_task(60.0, "terminare", id) } if( !task_set ) { set_task( 60.0, "recheck", TASK_ID, _, _, "b" ); // task pus la 1 minut pentru a functiona corect task_set = 1; } } } public recheck() { time( h, _, _ ); if( h >= 23 ) { new iPlayers[ 32 ], iNum, i; get_players( iPlayers, iNum ); for( i = 0; i < iNum; i++ ) { remove_user_flags( iPlayers[ i ] ); } server_cmd( "amx_reloadadmins" ); remove_task( TASK_ID ); task_set = 0; } } public incepe(id) { new o, m, s; time(o, m, s) if(o == get_pcvar_num( inceput ) ) ColorChat(id, "%L", LANG_SERVER, "MESAJ_INCEPUT") } public terminare(id) { new o, m, s; time(o, m, s) if(o == get_pcvar_num( sfarsit ) ) ColorChat(id, "%L", LANG_SERVER, "MESAJ_SFARSIT") } public hud_mess() { new o, m, s; time(o, m, s) if(o >= get_pcvar_num( inceput ) && o < get_pcvar_num( sfarsit )) { set_hudmessage(random(256), random(256), random(256), 0.00, 0.17, 1, 1.0, 1.1, 0.1, 0.1, -1) show_hudmessage(0, "%L", LANG_SERVER, "MESAJ_HUD") } } public mesaj(id) { if( get_user_flags(id) != get_pcvar_num( flag_vip ) ) { ColorChat(id, "%L", LANG_SERVER, "MESAJ_INTRARE", get_pcvar_num( inceput ), get_pcvar_num( sfarsit )) } } stock ColorChat(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, "!n", "^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(); } } } } Przeczytaj cały wpis
  22. Description Show up on enemy radar as a red blip when firing your weapon. CVars amx_treatradar 1/0 - enable/disable the plugin amx_treatradar_showteam 1 - show team as yellow blip on radar amx_treatradar_delay 0.5 - delay per radar blip amx_treatradar_maxdistance 3500 - max distance to the enemy amx_treatradar_showsuppressed 0 - show suppressed weapons on radar Changelog Version 1.0 - initial release (09 Sep 2023) Attached Files Get Plugin or Get Source (threat_radar.sma - 5.1 KB) Przeczytaj cały wpis
  23. Hello, could you put a save so that I remember the weapon? please When the map is changed I have to choose the weapon again PHP Code: #include <amxmodx> #include <cstrike> #include <cromchat> new const PLUGIN[] = "Ak47 Menu"; new const VERSION[] = "1.0"; new const AUTHOR[] = "RevCrew"; new const AKModels[][] = { "models/v_ak47.mdl", "models/RevCrewz/v_ak471.mdl", "models/RevCrewz/v_ak472.mdl", "models/RevCrewz/v_ak473.mdl", "models/RevCrewz/v_ak474.mdl" }; new const AKMenuNames[][] = { "Ak47 [DEFAUT]", "Ak47 Wasteland Rebel", "Ak47 Frontside misty", "Ak47 Furious Pouacock", "Ak47 Transparent" }; new AK[33]; public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR); register_clcmd("say /ak","AkMenu"); register_event("CurWeapon", "CurentWeapon", "be", "1=1"); } public plugin_precache() { for(new i; i < sizeof AKModels; i++) { precache_model(AKModels[i]); } } public MenuAk(id) { new menu = menu_create("\y>>>>> \rAk47 Menu \y<<<<<^n \dby >>\rRevCrew\d<<", "AkCase") menu_additem(menu, "Ak47 \r[DEFAUT]^n", "1", 0) menu_additem(menu, "\wAk47 \yWasteland Rebel", "2", 0) menu_additem(menu, "\wAk47 \yFrontside misty", "3", 0) menu_additem(menu, "\wAk47 \yFurious Pouacock", "4", 0) menu_additem(menu, "\wAk47 \yTransparent", "5", 0) menu_setprop(menu, MPROP_EXIT, MEXIT_ALL); menu_display(id, menu, 0 ); return 1; } public AkCase(id, menu, item) { if(item == MENU_EXIT) { return 1; } new nick[33]; get_user_name(id, nick, 32); AK[id] = item; CC_SendMessage(id, "&x03%s &x01You Chouse &x04%s &x01as Your Ak47", nick, AKMenuNames[item]); menu_destroy (menu); return 1; } public CurentWeapon(id) { if(get_user_weapon(id) == CSW_AK47) { set_pev(id, pev_viewmodel2, AKModels[AK[id]]); } } public AkMenu(id) { if(is_user_alive(id)) { MenuAk(id); }else{ MenuAk(id); } } Przeczytaj cały wpis
  24. Hello, can anyone help me ? I have this knife accessory for points. but when I buy 1 knife when changing maps it doesn't remember the knife and I have to choose it again. Can someone help me remember it? PHP Code: /* * * [ Knife Shop v 1.5 ] * * * v1.0 * - Iniciacion del plugin. * * v1.2 * - Optimizacion de if's * * v1.3 * - Agregada cvar para recibir puntos * * v1.4 * - Depuracion de codigo * * v1.5 * - Plugin Rehecho y optimizado * - EXTRA: Agregado Guardado Adv Vault * */ #include <amxmodx> #include <engine> #include <fakemeta> #include <hamsandwich> #include <adv_vault> new const KS_PLUGIN[] = "Knife Shop" new const KS_VERSION[] = "1.5" new const KS_AUTHOR[] = "zoolk" enum DATA_KNIFES { NAME[40], COST, V_MDL[50], P_MDL[50] } new const szKnifes[][DATA_KNIFES] = { { "Gut", 20, "models/ksKnifes/gut/v_gut.mdl", "models/ksKnifes/gut/p_gut.mdl" }, { "Flip", 50, "models/ksKnifes/flip/v_flip.mdl", "models/ksKnifes/flip/p_flip.mdl" }, { "Karambit", 100, "models/ksKnifes/karambit/v_karambit.mdl", "models/ksKnifes/karambit/p_karambit.mdl" }, { "M9 Bayonet", 200, "models/ksKnifes/m9_bayonet/v_m9_bayonet.mdl", "models/ksKnifes/m9_bayonet/p_m9_bayonet.mdl" } } enum { FIELD_POINTS = 0, FIELD_SPDKNIFE, MAX_FIELDS } new g_fields[MAX_FIELDS] new g_vault new g_playername[33][32] new g_spdknife[33][sizeof szKnifes] new g_hasknife[33] new g_points[33] new cvr_points_per_kill public plugin_init() { register_plugin(KS_PLUGIN, KS_VERSION, KS_AUTHOR) cvr_points_per_kill = register_cvar("amx_puntos_muerte", "1") register_clcmd("nightvision", "ShowKnifesMenu") RegisterHam(Ham_Item_Deploy, "weapon_knife", "fw_Ham_Item_Deploy_Post", true) RegisterHam(Ham_Killed, "player", "fw_Ham_Killed_Post", true) g_vault = adv_vault_open("DATOS_KNIFES", false) g_fields[FIELD_POINTS] = adv_vault_register_field(g_vault, "PUNTOS") g_fields[FIELD_SPDKNIFE] = adv_vault_register_field(g_vault, "KNIFES_COMPRADOS", DATATYPE_ARRAY, sizeof szKnifes) adv_vault_init(g_vault) } public client_putinserver(id) { get_user_name(id, g_playername[id], charsmax(g_playername[])) g_points[id] = 0 g_hasknife[id] = -1 for(new i = 0; i < sizeof szKnifes; i++) g_spdknife[id][i] = false load_data(id) } public client_disconnect(id) { save_data(id) } public plugin_precache() { for(new i = 0; i < sizeof szKnifes; i++) { precache_model(szKnifes[i][V_MDL]) precache_model(szKnifes[i][P_MDL]) } } public ShowKnifesMenu(id) { new menu, len[100] formatex(len, charsmax(len), "Tienda de Cuchillos^n\yPuntos: \r%d", g_points[id]) menu = menu_create(len, "CmdKnifesMenu") for(new i = 0; i < sizeof szKnifes; i++) { if(g_spdknife[id][i]) { formatex(len, charsmax(len), "%s", szKnifes[i][NAME]) if(g_hasknife[id] == i) add(len, charsmax(len), " \y[ACTIVO]") } else { if(g_points[id] >= szKnifes[i][COST]) formatex(len, charsmax(len), "%s \y[COMPRAR]", szKnifes[i][NAME]) else formatex(len, charsmax(len), "%s \r$%d", szKnifes[i][NAME], szKnifes[i][COST]) } menu_additem(menu, len) } menu_display(id, menu) } public CmdKnifesMenu(id, menu, item) { if(item == MENU_EXIT) { menu_destroy(menu) return PLUGIN_HANDLED; } if(g_spdknife[id][item]) { if(g_hasknife[id] == item) client_print(id, print_chat, "Ya tienes este knife Activo") else { g_hasknife[id] = item client_print(id, print_chat, "Has seleccionado el knife %s", szKnifes[item][NAME]) if(get_user_weapon(id) == CSW_KNIFE) { entity_set_string(id, EV_SZ_viewmodel, szKnifes[item][V_MDL]) entity_set_string(id, EV_SZ_weaponmodel, szKnifes[item][P_MDL]) } } } else { if(g_points[id] >= szKnifes[item][COST]) { g_spdknife[id][item] = true g_points[id] -= szKnifes[item][COST] client_print(id, print_chat, "Has comprado el knife %s", szKnifes[item][NAME]) ShowKnifesMenu(id) } else client_print(id, print_chat, "Te faltan %d puntos para poder compar el knife %s", szKnifes[item][COST] - g_points[id], szKnifes[item][NAME]) } return PLUGIN_HANDLED; } public fw_Ham_Item_Deploy_Post(weapon_ent) { new owner = get_pdata_cbase(weapon_ent, 41, 4) if(!pev_valid(owner) || g_hasknife[owner] == -1) return HAM_IGNORED; entity_set_string(owner, EV_SZ_viewmodel, szKnifes[g_hasknife[owner]][V_MDL]) entity_set_string(owner, EV_SZ_weaponmodel, szKnifes[g_hasknife[owner]][P_MDL]) return HAM_IGNORED; } public fw_Ham_Killed_Post(victim, attacker, shouldgib) { if(victim == attacker || !is_user_alive(attacker)) return HAM_IGNORED; g_points[attacker] += get_pcvar_num(cvr_points_per_kill) return HAM_IGNORED; } public save_data(id) { adv_vault_set_start(g_vault) adv_vault_set_field(g_vault, g_fields[FIELD_POINTS], g_points[id]) adv_vault_set_field(g_vault, g_fields[FIELD_SPDKNIFE], g_spdknife[id]) adv_vault_set_end(g_vault, 0, g_playername[id]) } public load_data(id) { if(!adv_vault_get_prepare(g_vault, _, g_playername[id])) return; g_points[id] = adv_vault_get_field(g_vault, g_fields[FIELD_POINTS]) adv_vault_get_field(g_vault, g_fields[FIELD_SPDKNIFE], g_spdknife[id], sizeof g_spdknife[]) } /* AMXX-Studio Notes - DO NOT MODIFY BELOW HERE *{\\ rtf1\\ ansi\\ deff0{\\ fonttbl{\\ f0\\ fnil Tahoma;}}\n\\ viewkind4\\ uc1\\ pard\\ lang2058\\ f0\\ fs16 \n\\ par } */ Przeczytaj cały wpis
  25. Hello people ! Can anyone help me add a check to see if I already have a revolver in my hand on respawn because now it gives me two. One falls to the ground and the other remains in my hand. Code: #include <amxmodx> #include <reapi> #include <cromchat> /** ¦¦¦¦ Bitsum validation by Lethality ¦¦¦¦ */ #define is_user_eligible(%0) ( 1 <= %0 <= MaxClients && is_user_vip( %0 ) ) /*¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦*/ #define VIP_FLAG ADMIN_RESERVATION #define PLUGIN "VIP Privileges[ReAPI]" #define VERSION "2.0.3" #define AUTHOR "Lethality" #pragma semicolon 1 /**¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ CUSTOM WEAPONS NATIVES - LETHALITY ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦*/ native IsUserHasMolotov( pPlayer ); native GiveUserMolotov( pPlayer ); native GiveUserRevolver( pPlayer ); /**¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦ CUSTOM WEAPONS NATIVES - LETHALITY ¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦¦*/ new bool:g_bInformationMessage[MAX_CLIENTS + 1] = {false, ...}; public plugin_init( ) { register_plugin( PLUGIN, VERSION, AUTHOR ); register_cvar( "VIP Privileges[ReAPI]", VERSION, FCVAR_SERVER|FCVAR_SPONLY|FCVAR_UNLOGGED ); RegisterHookChain( RG_CBasePlayer_Spawn, "@CBasePlayer__Spawn_Post", .post = true ); CC_SetPrefix( "&x01[&x04CS:GO Remake&x01: &x03VIP&x01]" ); } public client_putinserver(id) g_bInformationMessage[id] = false; @CBasePlayer__Spawn_Post(pPlayer) { if (is_user_alive(pPlayer) && is_user_eligible(pPlayer)) { rg_give_item(pPlayer, "item_assaultsuit"); GiveUserRevolver(pPlayer); if (!IsUserHasMolotov(pPlayer)) GiveUserMolotov(pPlayer); if (get_member(pPlayer, m_iTeam) == TEAM_CT) rg_give_defusekit(pPlayer, true); if (!g_bInformationMessage[pPlayer]) { CC_SendMatched(pPlayer, CC_COLOR_TEAM, "&x01Hey &x03%n&x01! &x01You're &x03VIP player &x01and you received &x04FREE items&x01!", pPlayer); g_bInformationMessage[pPlayer] = true; } } } bool:is_user_vip( pPlayer ) return bool:( get_user_flags( pPlayer ) & VIP_FLAG ); /* stock rg_give_item_ex(id, weapon[], GiveType:type = GT_APPEND, ammo = 0, bpammo = 0) { rg_give_item(id, weapon, type); if (ammo) rg_set_user_ammo(id, rg_get_weapon_info(weapon, WI_ID), ammo); if (bpammo) rg_set_user_bpammo(id, rg_get_weapon_info(weapon, WI_ID), bpammo); }*/ Przeczytaj cały wpis
×
×
  • Dodaj nową pozycję...