搜索
查看: 1276|回复: 2

『求助』如何在代码中增加踢人语句?

[复制链接]
发表于 2006-7-27 01:08:53 | 显示全部楼层 |阅读模式 来自 福建莆田
/* AMX Mod script.
*
* (c) Copyright 2002, OLO
* This file is provided as is (no warranties).
*
*/

#include <amxmod>

new bool:dontcheck[33]

public client_infochanged(id){
   if (dontcheck[id]){
      dontcheck[id] = false
   }
   else if (is_user_connected(id)){
      new newname[32], oldname[32]
      get_user_info(id, "name", newname,31)
      get_user_name(id,oldname,31)
   
      if (!equal(oldname,newname)){
         dontcheck[id] = true
         client_print(id,print_chat,"** You are not allowed to change your name")
         set_user_info(id,"name",oldname)
      }
   }
   return PLUGIN_CONTINUE
}

public plugin_init() {
   register_plugin("One Name","0.9","default")
   return PLUGIN_CONTINUE
}
发表于 2006-7-27 10:10:33 | 显示全部楼层 来自 黑龙江哈尔滨

回复: 『求助』如何在代码中增加踢人语句?

new userid = get_user_userid(id)  
server_cmd("kick #%d Follow the server rules",userid)
回复

使用道具 举报

发表于 2006-7-27 10:26:09 | 显示全部楼层 来自 香港

回复: 『求助』如何在代码中增加踢人语句?

有冇plugin係1round到改過兩次名就kick果個
因為我係網上搵個D都係要1round到改多過3次名先會
不過,通常改名屈排名都係只會改兩次名
所以我想問大家有冇呢個插件
回复

使用道具 举报

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

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