toribio

toribio

Jan 26th, 2009
97
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.42 KB | None | 0 0
  1. if(!strcmp(cmdtext, "//", true, 2) && IsPlayerAdmin(playerid))
  2. {
  3.     new pname[24];
  4.     if(strlen(cmdtext) < 3)
  5.         return SendClientMessage(playerid,Vermelho, "[ERRO]: // [Texto]");
  6.     GetPlayerName(playerid, string, sizeof string);
  7.     format(string, sizeof string, "[ADMIN CHAT]: %s: %s", string, cmdtext[2]);
  8.     for(new i; i < MAX_PLAYERS; i++)
  9.         if(IsPlayerAdmin(i))
  10.             SendClientMessageToAll(0x33CCFFAA, string);
  11.     return 1;
  12. }
Add Comment
Please, Sign In to add comment