/* NAG ACCESS - Author: NAG */ #if defined _nag_access_included #endinput #endif #define _nag_access_included /* 判断玩家是否拥有ADMIN1权限 判断玩家是否拥有ADMIN1权限 Check if a player has the access called ADMIN1 @param index //玩家索引// Player's index @return //return 1 - 拥有//拥有//Has had it //return 0 - 没有//没有//Doesn't have it @example: public check(id) { if (is_user_admin1(id) == 1) client_print(id,print_chat,"YOU HAVE THE ACCESS CALLED ADMIN1.") } */ native is_user_admin1(index) native is_user_admin2(index) native is_user_admin3(index) native is_user_admin4(index) native is_user_admin5(index) native is_user_admin6(index) native is_user_admin7(index) native is_user_admin8(index) native is_user_admin9(index) native is_user_admin10(index) /* 设定玩家是否拥有ADMIN1权限 设定玩家是否拥有ADMIN1权限 GIVE AWAY / TAKE AWAY the access called ADMIN1 TO / FROM a player. @param index //玩家索引// Player's index @param whether //whether = 1 - 给予//给予//Give it away to the player //whether = 0 - 没收//没收//Take it away from the player @example: public set(id) { set_user_admin1(id,1) client_print(id,print_chat,"NOW YOU HAVE THE ACCESS CALLED ADMIN1") } */ native set_user_admin1(index,whether) native set_user_admin2(index,whether) native set_user_admin3(index,whether) native set_user_admin4(index,whether) native set_user_admin5(index,whether) native set_user_admin6(index,whether) native set_user_admin7(index,whether) native set_user_admin8(index,whether) native set_user_admin9(index,whether) native set_user_admin10(index,whether)
"玩家游戏ID" "0#0#0#0#1#1#0#0#0#" 第二个引用符中的10个数字分别对应ADMIN1,ADMIN2,ADMIN3,ADMIN4……ADMIN10这10个权限。0表示不拥有该权限,1表示拥有该权限。 如果通过修改access.txt给予玩家新权限,则必须提前使玩家暂时退出游戏,直到修改完毕后方可进入伺服器玩耍。 不支持中文ID,如果使用中文ID,可能造成数据丢失。
若发现会员采用欺骗的方法获取财富,请立刻举报,我们会对会员处以2-N倍的罚金,严重者封掉ID!