toribio

toribio

Nov 15th, 2008
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. public OnPlayerText(playerid, text[])
  2. {
  3.     if(text[0] == '!')
  4.     {
  5.         if(playerGang[playerid] > 0)
  6.         {
  7.             new admcht[256];
  8.             new string[256];
  9.             strmid(admcht, text, 1, strlen(text));
  10.             format(string, sizeof(string), "[ADMIN-CHAT]%s: %s", admcht);
  11.             for(new i; i < MAX_PLAYERS; i++)
  12.             {
  13.                 if(IsPlayerAdmin(i)SendClientMessage(i COLOR_LIGHTBLUE, string);
  14.             }
  15.         }
  16.         return 0;
  17.     }
  18.     return 1;
  19. }
Add Comment
Please, Sign In to add comment