Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:mute(playerid, params[])
- {
- if(Administrator[playerid] < 1)
- return SCM(playerid, 0xFFFFFFFF,"* {FF4040}Nie jesteś administratorem!");
- new player, czas, powod[64];
- if(sscanf(params, "uds[64]", player, czas, powod))
- return SCM(playerid, -1, "* {A60000}/mute [id] [czas w sekundach] [powód]");
- if(!IsPlayerConnected(player))
- return SCM(playerid, -1, "* {A60000}Ten gracz nie jest połączony!");
- if(Administrator[player]) return SCM(playerid, -1, "* {A60000}Nie możesz uciszyc Administratora!");
- if(GetPVarInt(player, "mute") > GetTickCount()) return SCM(playerid, -1, "Ten gracz jest już uciszony!");
- 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);
- format(powod, sizeof powod, "Powód: {DDDDDD}%s {DD0000}.", powod);
- SCMToAll(0xDD0000FF, strx);
- SCMToAll(0xDD0000FF, powod);
- SetPVarInt(player, "mute", GetTickCount() + czas * 1000);
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement