發新話題
打印

幫大家找amxx

[Close]
引用:
原帖由 apple321s 於 2011-4-4 23:52 發表
amxx名稱:tr剩係可以用kf
要唔要幫你改野:不用了,唔該
未test ^^
複製內容到剪貼板
代碼:
#include <amxmodx>
#include <fakemeta>
#include <hamsandwich>

const PRIMARY_WEAPONS_BIT_SUM = (1<<CSW_SCOUT)|(1<<CSW_XM1014)|(1<<CSW_MAC10)|(1<<CSW_AUG)|(1<<CSW_UMP45)|(1<<CSW_SG550)|
    (1<<CSW_GALIL)|(1<<CSW_FAMAS)|(1<<CSW_AWP)|(1<<CSW_MP5NAVY)|(1<<CSW_M249)|(1<<CSW_M3)|(1<<CSW_M4A1)|(1<<CSW_TMP)|
    (1<<CSW_G3SG1)|(1<<CSW_SG552)|(1<<CSW_AK47)|(1<<CSW_P90)
const SECONDARY_WEAPONS_BIT_SUM = (1<<CSW_P228)|(1<<CSW_ELITE)|(1<<CSW_FIVESEVEN)|(1<<CSW_USP)|(1<<CSW_GLOCK18)|(1<<CSW_DEAGLE)

public plugin_init()
{
    register_plugin("TR Use KF", "1.0", "HsK")
    register_forward(FM_PlayerPreThink, "fw_PlayerPreThink")
    RegisterHam(Ham_Touch, "weaponbox", "fw_TouchWeapon")
    RegisterHam(Ham_Touch, "weapon_shield", "fw_TouchWeapon")
}

public fw_TouchWeapon(weapon, id)
{
    if (fm_cs_get_user_team(id) == 1)
        return HAM_SUPERCEDE;
   
    return HAM_IGNORED;
}

public fw_PlayerPreThink(id)
{
    if (!is_user_alive(id))
        return FMRES_IGNORED;

    if (fm_cs_get_user_team(id) != 1)
        return FMRES_IGNORED;

    if (has_custom_weapons(id, PRIMARY_WEAPONS_BIT_SUM) || has_custom_weapons(id, SECONDARY_WEAPONS_BIT_SUM))
    {
        fm_strip_user_weapons(id)
        fm_give_item(id, "weapon_knife")
    }

    return FMRES_IGNORED;
}

stock fm_cs_get_user_team(id)
{
    return get_pdata_int(id, 114, 5);
}

stock bool:has_custom_weapons(id, const bitsum)
{
    // Get user weapons
    static weapons[32], num, i, weaponid
    num = 0 // reset passed weapons count (bugfix)
    get_user_weapons(id, weapons, num)
   
    for (i = 0; i < num; i++)
    {
        weaponid = weapons[i]
        
        if ((1<<weaponid) & bitsum)
            return true;
    }
   
    return false;
}

stock fm_create_entity(const classname[])
{
    return engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, classname))
}

stock fm_strip_user_weapons(index)
{
    new ent = fm_create_entity("player_weaponstrip");
    if (!pev_valid(ent))
        return 0;
   
    dllfunc(DLLFunc_Spawn, ent);
    dllfunc(DLLFunc_Use, ent, index);
    engfunc(EngFunc_RemoveEntity, ent);
   
    return 1;
}

stock fm_give_item(index, const item[])
{
    if (!equal(item, "weapon_", 7) && !equal(item, "ammo_", 5) && !equal(item, "item_", 5) && !equal(item, "tf_weapon_", 10))
        return 0;
   
    new ent = fm_create_entity(item);
    if (!pev_valid(ent))
        return 0;
   
    new Float:origin[3];
    pev(index, pev_origin, origin);
    set_pev(ent, pev_origin, origin);
    set_pev(ent, pev_spawnflags, pev(ent, pev_spawnflags) | SF_NORESPAWN);
    dllfunc(DLLFunc_Spawn, ent);
   
    new save = pev(ent, pev_solid);
    dllfunc(DLLFunc_Touch, ent, index);
    if (pev(ent, pev_solid) != save)
        return ent;
   
    engfunc(EngFunc_RemoveEntity, ent);
   
    return -1;
}
MoT" HsK

TOP

係wo
唔記得左要改野wow
改返佢先
www.blhost.hk】致力提供不同類型而且高質素的伺服器,服務包括網站寄存、電郵服務、域名註冊、獨立伺服器、網頁設計 、VPS、伺服器租用服務

TOP

引用:
原帖由 HsK 於 2011-4-10 12:32 發表


  未test ^^

#include
#include
#include

const PRIMARY_WEAPONS_BIT_SUM = (1
吳得...一裝會死server

TOP

用刀仔片人片到佢飛走個插件
唔知你幫唔幫到手

TOP

名稱:無限金錢
全部人都可以用

TOP

jailbreak插件
要幫你改的野:唔駛lu~唔該

TOP

用刀仔片人片到佢飛走個插件
唔知你幫唔幫到手

TOP

amxx:bhop
要唔要幫你改野:要,只有tr才能用,比埋個sma你,plz

/*
*
* Author:  Cheesy Peteza
* Date:  22-Apr-2004 (updated 2-March-2005)
*
*
* Description: Enable bunny hopping in Counter-Strike.
*
* Cvars:
*   bh_enabled  1 to enable this plugin, 0 to disable.
*   bh_autojump  If set to 1 players just need to hold down jump to bunny hop (no skill required)
*   bh_showusage  If set to 1 it will inform joining players that bunny hopping has been enabled
*      and how to use it if bh_autojump enabled.
*
* Requirements: AMXModX 0.16 or greater
*
*
*/
#include <amxmodx>
#include <engine>
#define FL_WATERJUMP (1<<11) // player jumping out of water
#define FL_ONGROUND (1<<9) // At rest / on the ground
public plugin_init() {
register_plugin("Super Bunny Hopper", "1.2", "Cheesy Peteza")
register_cvar("sbhopper_version", "1.2", FCVAR_SERVER)
register_cvar("bh_enabled", "1")
register_cvar("bh_autojump", "1")
register_cvar("bh_showusage", "1")
}
public client_PreThink(id) {
if (!get_cvar_num("bh_enabled"))
  return PLUGIN_CONTINUE
entity_set_float(id, EV_FL_fuser2, 0.0)  // Disable slow down after jumping
if (!get_cvar_num("bh_autojump"))
  return PLUGIN_CONTINUE
// Code from CBasePlayer::Jump (player.cpp)  Make a player jump automatically
if (entity_get_int(id, EV_INT_button) 2) { // If holding jump
  new flags = entity_get_int(id, EV_INT_flags)
  if (flags FL_WATERJUMP)
   return PLUGIN_CONTINUE
  if ( entity_get_int(id, EV_INT_waterlevel) >= 2 )
   return PLUGIN_CONTINUE
  if ( !(flags FL_ONGROUND) )
   return PLUGIN_CONTINUE
  new Float:velocity[3]
  entity_get_vector(id, EV_VEC_velocity, velocity)
  velocity[2] += 250.0
  entity_set_vector(id, EV_VEC_velocity, velocity)
  entity_set_int(id, EV_INT_gaitsequence, 6) // Play the Jump Animation
}
return PLUGIN_CONTINUE
}
public client_authorized(id)
set_task(30.0, "showUsage", id)
public showUsage(id) {
if ( !get_cvar_num("bh_enabled") || !get_cvar_num("bh_showusage") )
  return PLUGIN_HANDLED
if ( !get_cvar_num("bh_autojump") ) {
  client_print(id, print_chat, "[AMX] Bunny hopping is enabled on this server. You will not slow down after jumping.")
} else {
  client_print(id, print_chat, "[AMX] Auto bunny hopping is enabled on this server. Just hold down jump to bunny hop.")
}
return PLUGIN_HANDLED
}

TOP

我未處理/之後既申請暫時暫停

由於近月十分繁忙,因此幫大家找amxx事項要暫時
www.blhost.hk】致力提供不同類型而且高質素的伺服器,服務包括網站寄存、電郵服務、域名註冊、獨立伺服器、網頁設計 、VPS、伺服器租用服務

TOP

amxx名稱:一般1個係無限錢/1個係800$ 同埋要防外掛防炸ser
要唔要幫你改野:似人地團ser ok

TOP

引用:
原帖由 KaI-S!nG 於 2011-4-16 16:44 發表
amxx名稱:一般1個係無限錢/1個係800$ 同埋要防外掛防炸ser
要唔要幫你改野:似人地團ser ok
上網搵大把xd

TOP

佔領模式
要唔要幫你改野:幫我改中文

TOP

比個好有用既網大家...
http://www.amxmodx.org
樓上係咪有人要jailbreak插件...比埋個網你.自己dl
http://forums.alliedmods.net/showthread.php?p=1113644
成年都冇ud過,v.應該已定
引用:
原帖由 jackyma159 於 2011-4-15 00:21 發表
amxx:bhop
要唔要幫你改野:要,只有tr才能用,比埋個sma你,plz

/*
*
* Author:  Cheesy Peteza
* Date:  22-Apr-2004 (updated 2-March-2005)
*
*
* Description: Enable bunny hopping in Counter-Strike.
*
* Cvars ...
加番cs_get_user_team

[ 本帖最後由 SuPeRHunTeR 於 2011-4-22 21:25 編輯 ]

TOP

amxx名稱:aR-Kui
要唔要幫你改野:連跳,自描,可以好像admin用線走來走去

TOP

AMXX:JELL BREAK(中文)
教下我ADMIN MENU點用?
開SER點用AMXX?

TOP

發新話題