Characters problem
#3

Thank you, how about this?
pawn Код:
COMMAND:a(playerid, params[])
{
    if(PlayerInfo[playerid][power])
    {
        new iReason[ 500 ];
        if( sscanf ( params, "s", iReason))  return SCP(playerid, "[message]");
        format(iStr,sizeof(iStr),"[AdminChat] %s %s: %s",AdminLevelName(playerid), RPName(playerid), iReason);
        PlayerLoop(qqq) if(PlayerInfo[qqq][power]) SendMessageToPlayer(qqq,COLOR_ADMINCHAT,iStr);
        format( iStr, sizeof(iStr), "7{ [ADMIN] %s %s: %s }",AdminLevelName(playerid), PlayerName(playerid), iReason);
        iEcho( iStr );
    }
    else SendClientError(playerid, "You are not allowed to use this command!");
    return 1;
}
Reply


Messages In This Thread
Characters problem - by ajam112 - 30.05.2014, 17:14
Re: Characters problem - by Konstantinos - 30.05.2014, 17:19
Re: Characters problem - by ajam112 - 30.05.2014, 17:27
Re: Characters problem - by Konstantinos - 30.05.2014, 17:39

Forum Jump:


Users browsing this thread: 1 Guest(s)