心静如水 发表于 2008-9-29 21:03:43

回复: CS1.6的新玩法...........(有图)

请高手帮忙好吗?俺试了几个都会踢人并刷新重开局,无能为力了..............

心静如水 发表于 2008-10-3 13:42:13

回复: CS1.6的新玩法...........(有图)

无耐再顶一次..........希望............不要那么忍心吗..........

狙神wmQ 发表于 2008-10-4 15:04:37

回复: ( 哎 呀 , 帮 帮 忙 好 不 好 ? ) ...有图...

友情支持!帮楼主顶顶!

狙神wmQ 发表于 2008-10-6 22:42:25

回复: ( 哎 呀 , 帮 帮 忙 好 不 好 ? ) ...有图...

ji xu ding ,wo ye xu yao zhe cha jian ,qiu gao ren lai

jim_yang 发表于 2008-10-10 17:03:37

回复: ( 哎 呀 , 帮 帮 忙 好 不 好 ? ) ...有图...


#include <amxmodx>
#include <hamsandwich>
#include <cstrike>

new const MODEL_t[] = "aaa"
new const MODEL_ct[] = "bbb"
public plugin_precache(id)
{
    new szFile
    formatex(szFile, charsmax(szFile), "models/player/%s/%s.mdl", MODEL_t, MODEL_t)
    if( file_exists(szFile) )
    {
      precache_model(szFile)
    }
    formatex(szFile, charsmax(szFile), "models/player/%s/%s.mdl", MODEL_ct, MODEL_ct)
    if( file_exists(szFile) )
    {
      precache_model(szFile)
    }
}
public plugin_init()
{
    register_forward(FM_SetClientKeyValue, "SetClientKeyValue")
    RegisterHam(Ham_Spawn, "player", "Spawn", 1)
}

public Spawn(id)
{
    if( is_user_alive(id) )
    {
      if( cs_get_user_team(id) == CS_TEAM_T)
            set_user_info(id, "model", MODEL_t)
      else
            set_user_info(id, "model", MODEL_ct)
    }
}
public SetClientKeyValue(id, infobuffer[], key[], value[])
{
    if(equal(key, "model") && (!equal(value, MODEL_t) || !equal(value, MODEL_ct)))
    {
      if( cs_get_user_team(id) == CS_TEAM_T)
            set_user_info(id, "model", MODEL_t)
      else
            set_user_info(id, "model", MODEL_ct)
      return FMRES_SUPERCEDE
    }
    return FMRES_IGNORED
}

顺手改的,没测试过,需要ham

狙神wmQ 发表于 2008-10-10 18:56:17

回复: ( 哎 呀 , 帮 帮 忙 好 不 好 ? ) ...有图...

Post by jim_yang

#include <amxmodx>
#include <hamsandwich>
#include <cstrike>

new const MODEL_t[] = "aaa"
new const MODEL_ct[] = "bbb"
public plugin_precache(id)
{
new szFile
formatex(szFile, charsmax(szFile), "models/player/%s/%s.mdl", MODEL_t, MO...
sm shi ham?
bian yi hou bu neng zhi jie yong ?

心静如水 发表于 2008-10-11 00:10:04

回复: ( 哎 呀 , 帮 帮 忙 好 不 好 ? ) ...有图...

Post by jim_yang

#include <amxmodx>
#include <hamsandwich>
#include <cstrike>

new const MODEL_t[] = "aaa"
new const MODEL_ct[] = "bbb"
public plugin_precache(id)
{
    new szFile
    formatex(szFile, charsmax(szFile), "models/player/%s/%s.mdl", MODEL_t, MODEL_t)
    if( file_exists(szFile) )
    {
      precache_model(szFile)
    }
    formatex(szFile, charsmax(szFile), "models/player/%s/%s.mdl", MODEL_ct, MODEL_ct)
    if( file_exists(szFile) )
    {
      precache_model(szFile)
    }
}
public plugin_init()
{
    register_forward(FM_SetClientKeyValue, "SetClientKeyValue")
    RegisterHam(Ham_Spawn, "player", "Spawn", 1)
}

public Spawn(id)
{
    if( is_user_alive(id) )
    {
      if( cs_get_user_team(id) == CS_TEAM_T)
            set_user_info(id, "model", MODEL_t)
      else
            set_user_info(id, "model", MODEL_ct)
    }
}
public SetClientKeyValue(id, infobuffer[], key[], value[])
{
    if(equal(key, "model") && (!equal(value, MODEL_t) || !equal(value, MODEL_ct)))
    {
      if( cs_get_user_team(id) == CS_TEAM_T)
            set_user_info(id, "model", MODEL_t)
      else
            set_user_info(id, "model", MODEL_ct)
      return FMRES_SUPERCEDE
    }
    return FMRES_IGNORED
}

顺手改的,没测试过,需要ham
老师.........有1个未定义register_forward?已放hamsandwich模块...........

或是麻烦帮编译一下(也可能编译器问题):模型路经是:

models/player/mm_te/mm_te.mdl//土匪
models/player/hr_ct/hr_ct.mdl//警察

jim_yang 发表于 2008-10-11 10:09:47

回复: ( 哎 呀 , 帮 帮 忙 好 不 好 ? ) ...有图...

#include <fakemeta>

心静如水 发表于 2008-10-11 10:52:46

回复: ( 哎 呀 , 帮 帮 忙 好 不 好 ? ) ...有图...

Post by jim_yang
#include <fakemeta>
特别谢谢................如果不会群踢...........请大家按原IP去下载新模型..........

狙神wmQ 发表于 2008-10-11 13:07:38

回复: ( 哎 呀 , 帮 帮 忙 好 不 好 ? ) ...有图...

Post by 心静如水
特别谢谢................如果不会群踢...........请大家按原IP去下载新模型..........
MM,怎么编译呀,我怎么编译不成?说说具体方法呗,谢谢了
页: 1 [2] 3
查看完整版本: ( 特别感谢..JIM_YANG..老师 ) ...谢...谢...!