Advertisement
Maki187

Untitled

Apr 30th, 2012
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 1.21 KB | None | 0 0
  1. CMD:cc(playerid, params[])
  2.     {
  3.         new ime[MAX_PLAYER_NAME]; new string[250];
  4.         GetPlayerName(playerid, ime, sizeof(ime));
  5.         if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdminDuty] == 1 || PlayerInfo[playerid][pGm] >= 2 && PlayerInfo[playerid][pGmDuty] == 1)
  6.         {
  7.             if(Pauza[playerid] > 0)
  8.             {
  9.                 SendClientMessage(playerid, SIVA, "Moras da sacekas 60 sekundi!");
  10.                 return 1;
  11.             }
  12.             foreach(Player,i)
  13.             {
  14.                 ClearChatbox(i, 100); Pauza[playerid] = 60;
  15.                 if(PlayerInfo[playerid][pAdmin] >= 1)
  16.                 {
  17.                     format(string, sizeof(string), "{FF0000} Admin %s{FFFFFF} je ocistio chat.", ime);
  18.                 }
  19.                 if(PlayerInfo[playerid][pGm] >= 1)
  20.                 {
  21.                     format(string, sizeof(string), "{00C5CD}GameMaster %s{FFFFFF} je ocistio chat.", ime);
  22.                 }
  23.                 SendClientMessageToAll(BELA, string);
  24.                 return 1;
  25.             }
  26.         }
  27.         else { SendClientMessage(playerid, SIVA, "Nisi na duznosti ili nisi ovlascen da koristis ovu komandu."); }
  28.         return 1;
  29.     }
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.  
  39.  
  40.  
  41. stock ClearChatbox(playerid, lines)
  42. {
  43.     for(new i=0; i<lines; i++)
  44.     {
  45.         SendClientMessage(playerid, BELA, " ");
  46.     }
  47.     return 1;
  48. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement