Admin chat
#7

Quote:
Originally Posted by Nicholas.
Посмотреть сообщение
Same problem.
pawn Код:
CMD:achat(playerid, params[])
{
     new AdmName[24], String[128], Text[128];
     if(PlayerInfo[playerid][Admin] < 1) return SendClientMessage(playerid, -1, "You Not Administrator");
     if(sscanf(params, "s[128]", Text)) return SendClientMessage(playerid, -1, "Using: /achat [Text]");
     GetPlayerName(playerid, AdmName, sizeof(AdmName));
     format(String, sizeof(String), "Admin-Chat: %s: %s", AdmName, Text);
     for(new i = 0; i < MAX_PLAYERS; i++)
     {
          if(PlayerInfo[i][Admin] > 1)
          {
               SendClientMessage(i, -1, String);
          }
      }
     return 1;
}
Try This.
Reply


Messages In This Thread
Admin chat - by Nicholas. - 17.06.2012, 00:54
Re: Admin chat - by WagnerPM - 17.06.2012, 00:58
Re: Admin chat - by Nicholas. - 17.06.2012, 01:11
Re: Admin chat - by misho1 - 17.06.2012, 01:19
Re: Admin chat - by Nicholas. - 17.06.2012, 01:34
Re: Admin chat - by WagnerPM - 17.06.2012, 01:39
Re: Admin chat - by .FuneraL. - 17.06.2012, 01:48
Re: Admin chat - by Nicholas. - 17.06.2012, 02:08
Re: Admin chat - by misho1 - 17.06.2012, 02:35
Re: Admin chat - by Nicholas. - 17.06.2012, 02:52

Forum Jump:


Users browsing this thread: 4 Guest(s)