Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:cc(playerid, params[])
- {
- new ime[MAX_PLAYER_NAME]; new string[250];
- GetPlayerName(playerid, ime, sizeof(ime));
- if(PlayerInfo[playerid][pAdmin] >= 1 && PlayerInfo[playerid][pAdminDuty] == 1 || PlayerInfo[playerid][pGm] >= 2 && PlayerInfo[playerid][pGmDuty] == 1)
- {
- if(Pauza[playerid] > 0)
- {
- SendClientMessage(playerid, SIVA, "Moras da sacekas 60 sekundi!");
- return 1;
- }
- foreach(Player,i)
- {
- ClearChatbox(i, 100); Pauza[playerid] = 60;
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- format(string, sizeof(string), "{FF0000} Admin %s{FFFFFF} je ocistio chat.", ime);
- }
- if(PlayerInfo[playerid][pGm] >= 1)
- {
- format(string, sizeof(string), "{00C5CD}GameMaster %s{FFFFFF} je ocistio chat.", ime);
- }
- SendClientMessageToAll(BELA, string);
- return 1;
- }
- }
- else { SendClientMessage(playerid, SIVA, "Nisi na duznosti ili nisi ovlascen da koristis ovu komandu."); }
- return 1;
- }
- stock ClearChatbox(playerid, lines)
- {
- for(new i=0; i<lines; i++)
- {
- SendClientMessage(playerid, BELA, " ");
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement