The 1 ur showing is not exact to that 1 more time :3 make a plugin for me like a menu and in that players name and when pressed amx_ban %s player like that make a plugin for me ill replace amx_ban with my command
This is an example to ban the selected player from the menu:
#include <amxmodx>
public plugin_init() { // Just say /open to open menu. ;) // If you want to change it, just edit the "open" register_clcmd("say /open", "clcmd_menu") register_clcmd("say_team /open", "clcmd_menu") }
public clcmd_menu( id ) { new menu = menu_create( "\rExample Menu!", "menu_handler" );
new players[32], pnum, tempid; new szName[32], szUserId[32];
get_players( players, pnum, "a" ) for ( new i; i<pnum; i++ ) { tempid = players[i]; get_user_name( tempid, szName, charsmax( szName ) );
Post by tousif(Guest) on Jan 12, 2015 15:20:47 GMT
Edited it check it : removed alive and added connected and this menu will be displayer in amxmodmenu as i added in menufront this is the error when i try to compile the 1 u posted and the 1 i edited both
Welcome to the AMX Mod X 1.8.1-300 Compiler. Copyright (c) 1997-2013 ITB CompuPhase, AMX Mod X Team
Pikamenu.sma(44) : error 017: undefined symbol "_access" Pikamenu.sma(44) : warning 215: expression has no effect Pikamenu.sma(44) : warning 215: expression has no effect Pikamenu.sma(44) : warning 215: expression has no effect Pikamenu.sma(44) : warning 215: expression has no effect Pikamenu.sma(44) : warning 215: expression has no effect Pikamenu.sma(44) : error 001: expected token: ";", but found ")" Pikamenu.sma(44) : error 029: invalid expression, assumed zero Pikamenu.sma(44) : fatal error 107: too many error messages on one line
--------------------------------------------------------------------------------------------------- Iam still new member Join this forum my frnds forum (iam also normal member :3 ) forums.counteristrike.com/index.php?app=referrals&reff=48
i have other plugin that is pika plugin that has this command amx_pika . But i dont have its sma to add menu so using another plugin to add menu btw i gave the example of ban ^_^
And this error Pikamenu.sma(44) : error 017: undefined symbol "_access"
public menu_handler( id, menu, item ) { if ( item == MENU_EXIT ) { menu_destroy( menu ); return PLUGIN_HANDLED; }
new szData[6], szName[64]; new item_access, item_callback; menu_item_getinfo( menu, item_access, szData,charsmax( szData ), szName,charsmax( szName ), item_callback );
new userid = str_to_num( szData );
new player = find_player( "k", userid )
if ( player && is_user_connected( player ) ) { new iUserID = get_user_userid( player )
server_cmd( "amx_pika #%i", iUserID ) }
menu_destroy( menu ); return PLUGIN_HANDLED; }
Pikamenu.sma(44) : error 035: argument type mismatch (argument 3) Pikamenu.sma(44) : error 035: argument type mismatch (argument 4) Pikamenu.sma(44) : error 035: argument type mismatch (argument 6) Pikamenu.sma(44) : fatal error 107: too many error messages on one line