Advertisement
Guest User

Untitled

a guest
Apr 24th, 2014
35
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. CMD:mute(playerid, params[])
  2. {
  3. if(Administrator[playerid] < 1)
  4. return SCM(playerid, 0xFFFFFFFF,"* {FF4040}Nie jesteś administratorem!");
  5.  
  6. new player, czas, powod[64];
  7.  
  8. if(sscanf(params, "uds[64]", player, czas, powod))
  9. return SCM(playerid, -1, "* {A60000}/mute [id] [czas w sekundach] [powód]");
  10.  
  11. if(!IsPlayerConnected(player))
  12. return SCM(playerid, -1, "* {A60000}Ten gracz nie jest połączony!");
  13.  
  14. if(Administrator[player]) return SCM(playerid, -1, "* {A60000}Nie możesz uciszyc Administratora!");
  15.  
  16. if(GetPVarInt(player, "mute") > GetTickCount()) return SCM(playerid, -1, "Ten gracz jest już uciszony!");
  17.  
  18. format(strx, sizeof strx, "{DD0000}Gracz {DDDDDD}%s{DD0000} został uciszony przez {DDDDDD}%s{DD0000}, na czas {DDDDDD}%d{DD0000} sek.", pName[player],pName[playerid],czas);
  19. format(powod, sizeof powod, "Powód: {DDDDDD}%s {DD0000}.", powod);
  20. SCMToAll(0xDD0000FF, strx);
  21. SCMToAll(0xDD0000FF, powod);
  22. SetPVarInt(player, "mute", GetTickCount() + czas * 1000);
  23. return 1;
  24. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement