![]() |
|
* Info Server V2 @ roxxanne. - Printable Version +- eSportsKosova - Gaming Community (https://esportskosova.com) +-- Forum: HAPËSIRA E COUNTER-STRIKE (https://esportskosova.com/forum-7.html) +--- Forum: Counter-Strike 1.6 (https://esportskosova.com/forum-19.html) +---- Forum: Amx Mod X (https://esportskosova.com/forum-58.html) +----- Forum: AMX - Plugin's (https://esportskosova.com/forum-193.html) +----- Thread: * Info Server V2 @ roxxanne. (/thread-44485.html) |
* Info Server V2 @ roxxanne. - roxxanne. - 12-21-2023 * Info Server V2 @ roxxanne. ![]() * Tregon Info te Serverit , ne menyr shum te lehte dhe shum e qarte , nuk jep llag , nuk ka as BUG ! ![]() * Per ta shfaqur Menu-n ne server sheno /infosv ![]() SOURCE CODE [spoiler]#include < amxmodx >
#KosovaGamers 1 static const PLUGIN[ ] = "wGods Info Server"; static const VERSION[ ] = "v2.0"; new pCvarString[ 2 ]; public plugin_init( ) { register_plugin( PLUGIN, VERSION, "roxxanne.©KosovaGamers.com" ); register_clcmd( "say /infosv", "cmdInfoServer" ); register_clcmd( "say_team /infosv", "cmdInfoServer" ); pCvarString[ 0 ] = register_cvar( "ws_info_forum", "KosovaGamers.com" ); pCvarString[ 1 ] = register_cvar( "ws_info_owner", "roxxanne." ); } public cmdInfoServer( szIndex ) { new szMenu = menu_create( "Info Server", "iContent" ); new szAdd[ 164 ], szPlayers[ 32 ], szMap[ 32 ], szForum[ 32 ], szOwner[ 32 ], iNum; get_players( szPlayers, iNum ); get_mapname( szMap, sizeof ( szMap ) - 1 ); get_pcvar_string( pCvarString[ 0 ], szForum, sizeof ( szForum ) - 1 ); get_pcvar_string( pCvarString[ 1 ], szOwner, sizeof ( szOwner ) - 1 ); if ( is_linux_server( ) ) formatex( szAdd, sizeof ( szAdd ) - 1, "\wPlatforma: \rLinux" ); else formatex( szAdd, sizeof ( szAdd ) - 1, "\wPlatforma: \rWindows" ); menu_additem( szMenu, szAdd, "1" ); formatex( szAdd, sizeof ( szAdd ) - 1, "\wSlots: \r%i", get_maxplayers( ) ); menu_additem( szMenu, szAdd, "2" ); formatex( szAdd, sizeof ( szAdd ) - 1, "\wLojtare: \r%i\w/\r%i", iNum, get_maxplayers( ) ); menu_additem( szMenu, szAdd, "3" ); formatex( szAdd, sizeof ( szAdd ) - 1, "\wMapi: \r%s", szMap ); menu_additem( szMenu, szAdd, "4" ); formatex( szAdd, sizeof ( szAdd ) - 1, "\wKryesori: \r%s", szOwner ); menu_additem( szMenu, szAdd, "5" ); formatex( szAdd, sizeof ( szAdd ) - 1, "\wForum: \r%s", szForum ) ; menu_additem( szMenu, szAdd, "6" ); menu_display( szIndex, szMenu, 0 ); return 1; } public iContent( szIndex, szMenu, szItem ) { if ( szItem == MENU_EXIT ) { menu_destroy( szMenu ); return 1; } new szCommand[ 6 ], szName[ 64 ]; new szAccess, szCallback; menu_item_getinfo( szMenu, szItem, szAccess, szCommand, sizeof ( szCommand ) - 1, szName, sizeof ( szName ) - 1, szCallback ); return 1; }[/spoiler] ![]() SHKARKO |