I'm need chat admin.
#9

Quote:
Originally Posted by Drake1994
Посмотреть сообщение
pawn Код:
CMD:command( playerid, params[ ] )
{
    if( GetPVarInt( playerid, "Level" ) < 1 )
        return SendClientMessage(playerid, 0xFFFFFFFF, "Only admins!");
   
    if(isnull( params ))
        return SendClientMessage(playerid, 0xFFFFFFFF, "Usage: /command [text]");
   
    new
        i = -1,
        message[148 + MAX_PLAYER_NAME + 14 + 1]
    ;
   
    GetPlayerName(playerid, message, MAX_PLAYER_NAME);
    format(message, sizeof(message), "[AdminChat] %s: %s", message, params);
   
    for( ;++i < MAX_PLAYERS; )
    {
        if( IsPlayerConnected( i ) && ( GetPVarInt( i , "Level" ) > 1) )
        {
            SendClientMessage( i, 0xFFFFFFFF, params );
        }
    }
    return true;
}
I dont know, that are you blind or not, but my code is full perfect, and working, any code here is a such of bug and made me laugh
Reply


Messages In This Thread
I'm need chat admin. - by Userpwon - 14.09.2012, 19:05
Re: I'm need chat admin. - by Camacorn - 14.09.2012, 19:11
Re: I'm need chat admin. - by Drake1994 - 14.09.2012, 19:12
Re: I'm need chat admin. - by _Khaled_ - 14.09.2012, 19:17
Re: I'm need chat admin. - by Userpwon - 14.09.2012, 19:45
Re: I'm need chat admin. - by _Khaled_ - 14.09.2012, 19:52
Re: I'm need chat admin. - by Userpwon - 14.09.2012, 19:56
Re: I'm need chat admin. - by _Khaled_ - 14.09.2012, 19:59
Re: I'm need chat admin. - by Drake1994 - 14.09.2012, 20:04
Re: I'm need chat admin. - by Userpwon - 14.09.2012, 20:06

Forum Jump:


Users browsing this thread: 4 Guest(s)