搜索
查看: 3539|回复: 8

请问OP怎样在游戏中改玩家的名字呀?

[复制链接]
发表于 2003-8-19 13:07:27 | 显示全部楼层 |阅读模式 来自 中国–河北–廊坊
有些玩家的名字很不好,op怎样在游戏中改呀,以前的帖子说过用amx就可以,可是怎样使用命令呀?还用什么插件吗?在哪里能找到?
发表于 2003-8-19 16:52:34 | 显示全部楼层 来自 中国–上海–上海
client_exec插件可以做到!
回复

使用道具 举报

发表于 2003-8-19 18:17:36 | 显示全部楼层 来自 中国–黑龙江–七台河
amx_clexec userid "name userid2"    ;把名字为userid的名字改为userid2
amx_clexec @CT "name benben"     ;把所有的CT名字改为benben
回复

使用道具 举报

 楼主| 发表于 2003-8-19 23:27:31 | 显示全部楼层 来自 中国–河北–廊坊
谢谢!请问在哪里能找到这个插件呀?
回复

使用道具 举报

 楼主| 发表于 2003-8-19 23:32:56 | 显示全部楼层 来自 中国–河北–廊坊
谢谢,找到啦!admin_clexec.sma中的内容,谁要可以自己编译。

/* AMX Mod script.
*
* (c) Copyright 2002-2003, OLO
* This file is provided as is (no warranties).
*
* Usage: amx_clexec <authid, nick, @team or #userid> <command line>
* Examples:
* amx_clexec @CT disconnect
* amx_clexec @TERRORIST "say we will lose!!!"
* amx_clexec #213 "name \'die another day\'"
*
*/

#include <amxmod>
#include <amxmisc>

public plugin_init()
{
  register_plugin("Admin Clexec","0.9.4","default")
  register_concmd("amx_clexec","admin_clexec",ADMIN_LEVEL_A,"<authid, nick, @team or #userid> <command line>")
}

clexec_player(id,victim,cmdline[]){
  new name[32]
  get_user_name(victim,name,31)
  if (is_user_bot(victim)){
    new cmd[32]
    parse(cmdline,cmd,31)
    engclient_cmd(victim,cmd,cmdline[strlen(cmd)+1])
  }
  else
    client_cmd(victim,cmdline)
  console_print(id,"Command line ^"%s^" has been executed on ^"%s^"",cmdline,name)
}

public admin_clexec(id,level,cid) {
  if (!cmd_access(id,level,cid,3))
    return PLUGIN_HANDLED
  new arg[32], cmdline[64]
  read_argv(1,arg,31)
  read_argv(2,cmdline,63)
  while ( replace( cmdline ,63,"\'","^"") ) { }
  if (arg[0]=='@'){
    new players[32], inum , name[32]
    get_players(players,inum,"e",arg[1])
    if (inum==0){
      console_print(id,"No clients in such team")
      return PLUGIN_HANDLED
    }
    for(new a=0;a<inum;++a){
      if (get_user_flags(players[a])&ADMIN_IMMUNITY){
        get_user_name(players[a],name,31)
        console_print(id,"Skipping ^"%s^" because client has immunity",name)
        continue
      }
      clexec_player(id,players[a],cmdline)
    }
  }
  else {
    new player = cmd_target(id,arg,1)
    if (!player) return PLUGIN_HANDLED
    clexec_player(id,player,cmdline)
  }
  return PLUGIN_HANDLED
}
回复

使用道具 举报

发表于 2003-8-20 01:11:42 | 显示全部楼层 来自 中国–福建–泉州
最初由 恋网物语 发表
amx_clexec userid &quot;name userid2&quot;    ;把名字为userid的名字改为userid2
amx_clexec @CT &quot;name benben&quot;     ;把所有的CT名字改为benben


请问这是直接再控制台输入?还是在cfg里面加啊
回复

使用道具 举报

发表于 2003-8-20 11:52:44 | 显示全部楼层 来自 中国–广东–韶关
当然在控制台输入啊,难道游戏一开始就把人家名字全都改掉?
回复

使用道具 举报

发表于 2003-8-21 23:29:24 | 显示全部楼层 来自 中国–广东–深圳–福田区
我在浩方里用,发现改不了别人的名字!
请指点!谢谢。。。。
回复

使用道具 举报

发表于 2003-8-22 10:35:14 | 显示全部楼层 来自 中国–北京–北京
hehe
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表