Jump to content

HGsanti

Registrado sin publicaciones
  • Contenido

    5
  • Ingreso

  • Última visita

  • Días ganados

    1

Todo lo publicado por HGsanti

  1. ¿Qué deficiencia tiene?.. ahora la versión actual del plugin es la 5.0 pero es una versión privada :(XP):
  2. Probalo... si el usuario que ataca está en un buyzone no hace daño, pero lo puede matar alguien que no esté en el buyzone. #include #include #include public plugin_init() { register_plugin("Surf: No kill en buy", "1.0", "ILUSION"); RegisterHam(Ham_TraceAttack, "player", "fw_TraceAttack"); RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage"); } public fw_TraceAttack(victim, attacker, Float:dmg, Float:dir[3], traceresult, dmgbits) { if (is_user_connected(attacker) && cs_get_user_buyzone(attacker)) return HAM_SUPERCEDE; return HAM_IGNORED; } public fw_TakeDamage(victim, inflictor, attacker, Float:damage, damage_type) { if (is_user_connected(attacker) && cs_get_user_buyzone(attacker) && damage_type & (1<<24)) { SetHamParamFloat(4, 0.0); return HAM_SUPERCEDE; } return HAM_IGNORED; }
  3. Por si te sirve.... ////////////////////////////////////////// //Unlimited Nades // //Ported By Sp4rt4n // //Ported March 16, 2005 // //This code may not be used or copied // //without Sp4rt4n's personal permission.// ////////////////////////////////////////// //Origionally coded by Freecode. //The fun module is required. //This plugin allows an admin to give someone, a whole team, or everyone unlimited nades. // #include #include new g_lata[33]; public client_putinserver(id) g_lata[id] = false; public cmdLata(id) { if (!g_lata[id]) { new parm[1] parm[0] = id set_task(0.2, "nade", id, _, _, "b") g_lata[id] = true; } else { remove_task(id); g_lata[id] = false; } client_print(id, print_chat, "Ahora %stenes bombas ilimitadas!", g_lata[id] ? "" : "no "); return PLUGIN_HANDLED; } //------------------------------------------------------------------- public nade(id) { new wpn[32], num; get_user_weapons(id,wpn,num) for (new i = 0;i < num ;i++) { if (wpn[i] != CSW_HEGRENADE) give_item(id,"weapon_hegrenade") if (wpn[i] != CSW_SMOKEGRENADE) give_item(id,"weapon_smokegrenade") if (wpn[i] != CSW_FLASHBANG) give_item(id,"weapon_flashbang") } } //------------------------------------------------------------------- public plugin_init() { register_plugin("Unlimited Nades","1.0","Sp4rt4n") register_clcmd("say /latas", "cmdLata"); }
  4. Es un plugin que hice hace tiempo para los servidores de Una comunidad porque la verdad, soy un colgado y siempre se me pasaban las fechas de los administradores. Lo que hace el plugin es leer el vencimiento del administrador desde el users.ini y si venció, lo deshabilita El formato del users.ini es igual que siempre solo que se agrega "vencimiento" EJEMPLO: "ILUSION" "password" "abcdefghijklmnopqrstu" "ab" "25/07/2011" y si no tiene vencimiento "ILUSION" "password" "abcdefghijklmnopqrstu" "ab" Admin vencimiento.zip
  5. Un plugin que hice para mi server de surf aunque no necesariamente tiene que ser para mapas de surf. #include #include #include new g_SayText, RespawnMap; public plugin_init() { register_plugin("Surf Respawn", "1.0", "ILUSION"); register_clcmd("say /respawn", "cmdRespawn"); register_clcmd("say", "cmdSay"); RegisterHam(Ham_Spawn, "weaponbox", "fw_SpawnWeaponBox", 1); g_SayText = get_user_msgid("SayText"); LoadMaps(); } public cmdSay(id) { if (!RespawnMap) return PLUGIN_CONTINUE; new say[192]; read_args(say, charsmax(say)); if (containi(say, "respawn") != -1) ChatColor(0, "!g[Hunter Gamers] !yEn este mapa el !teamrespawn !yesta activado. Escribe !g/respawn !ypara revivir!"); return PLUGIN_CONTINUE; } public cmdRespawn(id) { if (!RespawnMap) ChatColor(id, "!g[Hunter Gamers] !yEn este mapa el !teamrespawn !yesta !gdeshabilitado"); else if (get_user_team(id) != 1 && get_user_team(id) != 2) ChatColor(id, "!g[Hunter Gamers] !yNo podes usar este comando siendo !teamespectador"); else if (!is_user_alive(id)) ExecuteHamB(Ham_CS_RoundRespawn, id); else ChatColor(id, "!g[Hunter Gamers] !yPara usar este comando tenes que estar !gmuerto"); return PLUGIN_HANDLED; } public fw_SpawnWeaponBox(iEntity) // xPaw { if (RespawnMap) { set_pev(iEntity, pev_flags, FL_KILLME); dllfunc(DLLFunc_Think, iEntity); } return HAM_IGNORED; } LoadMaps() { new curmap[32], szMap[64][32]; get_mapname(curmap, charsmax(curmap)); if (containi(curmap, "surf_") == -1) pause("a"); new szFile[] = "addons/amxmodx/configs/surf_respawn.ini"; if (!file_exists(szFile)) RespawnMap = false; new file = fopen(szFile, "rt"); new szLine[255], linea; while (!feof(file)) { szLine[0] = '^0'; fgets(file, szLine, charsmax(szLine)); trim(szLine); if (szLine[0] == ';' || !szLine[0] || szLine[0] == '^n') continue; copy(szMap[linea], sizeof szMap, szLine); linea++; } fclose(file); for (new i = 0; i < linea; i++) { if (equal(curmap, szMap[i])) { RespawnMap = true; break; } } } stock ChatColor(const id, const input[], any:...) { new count = 1, players[32]; static msg[191]; vformat(msg, 190, input, 3); replace_all(msg, 190, "!g", "^4"); // Green Color replace_all(msg, 190, "!y", "^1"); // Default Color replace_all(msg, 190, "!team", "^3"); // Team Color replace_all(msg, 190, "!team2", "^0"); // Team2 Color new iPlayer; if (id) players[0] = id; else get_players(players, count, "ch"); { for (new i = 0; i < count; i++) { iPlayer = players[i]; if (is_user_connected(iPlayer)) { message_begin(MSG_ONE_UNRELIABLE, g_SayText, _, iPlayer); write_byte(iPlayer); write_string(msg); message_end(); } } } } Si no lo van a usar exclusivamente para mapas de surf saquen la parte que dice if (containi(curmap, "surf_") == -1) pause("a"); Es simple la función del plugin, tienen que crear un archivo que se llame surf_respawn.ini y lo ponen en addons/amxmodx/configs, en ese archivo ponen los nombre de los mapas donde está permitido el respawn por ej: surf_green surf_ski_2 surf_water-run Para evitar que tiren el server respawneando muchas veces (muchas armas droppeadas) al caer un arma desaparece automáticamente.
×
×
  • Crear nuevo...

Información importante

Al utilizar nuestra web, aceptas nuestras Política de privacidad estás de acuerdo con las condiciones establecidas.