/rcon say other text and new colour [HELP!]
#9

pawn Код:
#include <zcmd>
   
CMD:asay(playerid, params[]) {

    if (!isnull(params) && IsPlayerAdmin(playerid))
    {
        new szOutput[144], szPlayerName[24];
        GetPlayerName(playerid, szPlayerName, sizeof szPlayerName);
       
        format(szOutput, sizeof szOutput, "** Admin %s: %s **", szPlayerName, params);
        SendClientMessageToAll(0x66FF00FF, szOutput);
    }
    return 0;
}
You don't need sscanf and you need to be logged in RCON.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)