Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmd, "/chatlock", true) == 0)
- {
- if(PlayerInfo[playerid][pAdmin] < 10) return DenyMessage(playerid, 10);
- ServerInfo[ChatLocked] = 1;
- for (new a=1;a<=60;a++)
- {
- SendClientMessageToAll(COLOR_LIGHTBLUE,"\n");
- SendClientMessageToAll(COLOR_LIGHTBLUE,"\n");
- }
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string), @c(lblue) "** Admin " @c(lightred) "%s" @c(lblue) " has Locked the Chat.", sendername);
- SendClientMessageToAll(COLOR_BRIGHTRED, string);
- return 1;
- }
- if(strcmp(cmd, "/chatunlock", true) == 0)
- {
- if(PlayerInfo[playerid][pAdmin] < 10) return DenyMessage(playerid, 10);
- ServerInfo[ChatLocked] = 0;
- GetPlayerName(playerid, sendername, sizeof(sendername));
- format(string, sizeof(string),@c(lblue) "** Admin " @c(lightred) "%s" @c(lblue) " has Un-Locked the Chat.", sendername);
- SendClientMessageToAll(COLOR_GREEN, string);
- return 1;
- }
Add Comment
Please, Sign In to add comment