/say Problem
#8

This will work . I put the return in the wrong part, anyway, so you have sscanf now? Good, it's much easier to use it and more efficient.

pawn Код:
dcmd_say(playerid, params[])
{
    new message[128], string[128], name[MAX_PLAYER_NAME];
    if (sscanf(params, "s", message)) SendClientMessage(playerid, COLOR_WHITE, "SYNTAX - /say [message]");
    else
    {
      if(IsPlayerAdmin(playerid))
      {
        GetPlayerName(playerid, name, sizeof(name));
        format(string, sizeof(string), "RCON Admin %s: %s.", name, message); // You will probably want to re-format this.
        SendClientMessageToAll(COLOR_ORANGE, string);
      }
      else
      {
        SendClientMessage(playerid, COLOR_ORANGE, "You're not an RCON administrator.");
      }
    }
    return 1;
}
Reply


Messages In This Thread
/say Problem - by Striker_Moe - 12.09.2009, 12:07
Re: /say Problem - by dice7 - 12.09.2009, 12:19
Re: /say Problem - by Striker_Moe - 12.09.2009, 12:23
Re: /say Problem - by Striker_Moe - 12.09.2009, 13:27
Re: /say Problem - by Calgon - 12.09.2009, 13:28
Re: /say Problem - by Striker_Moe - 12.09.2009, 13:43
Re: /say Problem - by Striker_Moe - 12.09.2009, 14:27
Re: /say Problem - by Calgon - 12.09.2009, 14:37
Re: /say Problem - by Striker_Moe - 12.09.2009, 14:42
Re: /say Problem - by Calgon - 12.09.2009, 14:49

Forum Jump:


Users browsing this thread: 3 Guest(s)