It sends only the Message to me..
#4

pawn Код:
dcmd_msay(playerid, params[])
{
    new message[128], userid, string[128];
    if (sscanf(params, "us", userid, message)) SendClientMessage(playerid, COLOR_WHITE, "SYNTAX - /msay [playerid] [message]");
    else
    {
      if(PlayerData[playerid][Medic] < 1)
      {
        SendClientMessage(playerid, COLOR_WHITE, "You're not a medic!");
      }
      else
      {
        if(IsPlayerConnected(userid))
        {
            format(string, sizeof(string), "A medic message.. %s", message);
            SendClientMessage(userid, COLOR_WHITE, string);
        }
        else
        {
          SendClientMessage(playerid, COLOR_WHITE, "Invalid ID.");
        }
      }
    }
    return 1;
}
Reply


Messages In This Thread
It sends only the Message to me.. - by Erkan - 14.09.2009, 07:10
Re: It sends only the Message to me.. - by Zeex - 14.09.2009, 09:06
Re: It sends only the Message to me.. - by Erkan - 14.09.2009, 09:18
Re: It sends only the Message to me.. - by Calgon - 14.09.2009, 12:50
Re: It sends only the Message to me.. - by Jakku - 14.09.2009, 13:38

Forum Jump:


Users browsing this thread: 1 Guest(s)