|
本帖最后由 sakulekingz 于 2010-4-4 05:47 编辑
使用命令 say Sxessmenu
使用权限 ADMIN_KICK (c)
- /*
- --------------------------------------------------------------------------------
- Web URL: http://Lunatic.org.cn//
- E-M@IL: mailto:k1nmaill@sina.com
- --------------------------------------------------------------------------------
- */
-
- #include <amxmodx>
- #include <amxmisc>
-
- #define PLUGIN "sXe ScreenShots Menu"
- #define VERSION "1.0"
- #define AUTHOR "k1nader"
- #define LOADING "^n^t%s v%s, Copyright (C) 2010 by %s^n"
-
- public plugin_init()
- {
- register_plugin(PLUGIN, VERSION, AUTHOR);
- server_print(LOADING,PLUGIN,VERSION,AUTHOR);
- register_clcmd( "say sxessmenu","ScreenShotsMenu",ADMIN_KICK,"- sXe ScreenShots Menu");
- }
-
- public ScreenShotsMenu(id, level)
- {
- if(!access(id,level)) return PLUGIN_HANDLED;
- new menu = menu_create("\rsXe ScreenShots Menu", "sXe_menu_handler");
- new players[32], pnum, tempid;
- new szName[32], szTempid[10];
- get_players(players, pnum);
-
- for( new i; i<pnum; i++ )
- {
- tempid = players[i];
- get_user_name(tempid, szName, 31);
- num_to_str(tempid, szTempid, 9);
- menu_additem(menu, szName, szTempid, 0);
- }
- menu_display(id, menu, 0);
- return PLUGIN_HANDLED;
- }
-
- public sXe_menu_handler(id, menu, item)
- {
- if( item == MENU_EXIT )
- {
- menu_destroy(menu);
- return PLUGIN_HANDLED;
- }
- new data[6], iName[64];
- new access, callback;
- menu_item_getinfo(menu, item, access, data,5, iName, 63, callback);
- new tempid = str_to_num(data);
- server_cmd("sxe_screen #%d #%d", get_user_userid(tempid), get_user_userid(id));
- menu_destroy(menu);
- return PLUGIN_HANDLED;
- }
复制代码 |
本帖子中包含更多资源
您需要 登录 才可以下载或查看,没有账号?注个册吧
×
|