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

Oh my God, sscanf

pawn Код:
if(strcmp(cmdtext, "/asay", true) == 0)
{
    if(!IsPlayerAdmin(playerid)) return 1;
    new PlayerName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
    new string[144];
    format(string, sizeof(string), "Admin %s: %s", PlayerName, cmdtext[6]);
    SendClientMessageToAll(0x66FF00FF, string);
    return 1;
}
Zcmd I think:
pawn Код:
CMD:say(playerid, params[])
{
    if(!IsPlayerAdmin(playerid)) return 1;
    new PlayerName[MAX_PLAYER_NAME];
    GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
    new string[144];
    format(string, sizeof(string), "Admin %s: %s", PlayerName, params);
    SendClientMessageToAll(0x66FF00FF, string);
    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 2 Guest(s)