Advertisement
FanHamMer

Untitled

May 15th, 2016
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.77 KB | None | 0 0
  1. CMD:as(playerid, params[])
  2. {
  3.     if GetPVarInt(playerid, "Admin") < 1 *then return SendClientMessage(playerid, -1, "[»] Вы не Администратор 1 LVL");
  4.     if sscanf(params, "s[144]", params[0]) *then return SendClientMessage(playerid, -1, "Использовать: /as [текст]");
  5.     new string[144], admrank[17];
  6.     switch(GetPVarInt(playerid, "Admin"))
  7.     {
  8.         case 1: admrank = "Помощник";
  9.         case 2: admrank = "Модератор";
  10.         case 3: admrank = "Администратор";
  11.         case 4: admrank = "Гл.Администратор";
  12.     }
  13.     format(string, sizeof(string), "%s {%06x}%s{ffffff}: %s", admrank, GetPlayerColor(playerid) >>> 8, GetName(playerid), params[0]);
  14.     SendClientMessageToAll(0xff0000aa, string);
  15.     return true;
  16. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement