rofation 发表于 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

public client_infochanged(id){
   if (dontcheck){
      dontcheck = false
   }
   else if (is_user_connected(id)){
      new newname, oldname
      get_user_info(id, "name", newname,31)
      get_user_name(id,oldname,31)
   
      if (!equal(oldname,newname)){
         dontcheck = 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
}

kinsprite 发表于 2006-7-27 10:10:33

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

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

ydo 发表于 2006-7-27 10:26:09

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

有冇plugin係1round到改過兩次名就kick果個
因為我係網上搵個D都係要1round到改多過3次名先會
不過,通常改名屈排名都係只會改兩次名
所以我想問大家有冇呢個插件
页: [1]
查看完整版本: 『求助』如何在代码中增加踢人语句?