toribio

toribio

Sep 3rd, 2008
179
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.52 KB | None | 0 0
  1. public OnPlayerText(playerid, text[])
  2. {
  3.     new text2[256], pname[24];
  4.     if(text[0] == ';')
  5.     {
  6.         strmid(text2, text, 1, strlen(text));
  7.         SendPlayerMessageToAll(playerid, text2);
  8.         return 0;
  9.     } else {
  10.         GetPlayerName(playerid, pname, 24);
  11.         format(text2, sizeof(text2), "[TIME]%s(ID:%d): %s", pname, playerid, text);
  12.         for(new i;i<MAX_PLAYERS;i++)
  13.         {
  14.             if(gTeam[i]) == gTeam[playerid])SendClientMessage(i, 0xFFFF00AA, text2);
  15.         }
  16.     }
  17.     return 0;
  18. }
Advertisement
Add Comment
Please, Sign In to add comment