Advertisement
Guest User

Untitled

a guest
Jun 24th, 2018
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. CMD:cc( playerid, params[], help) {
  2.  
  3. if( PlayerInfo[ playerid ][ xAdmin ] >= 1 || PlayerInfo[ playerid ][ xSupporter ] >=3 ) {
  4.  
  5. if( ServerInfo[ TClearChat ] == true ) return GRESKA( playerid, "Chat mozes brisati svakih 5 sekundi." );
  6. SetTimerEx( "Timer_ClearChat", 5000, false, "d", 0 );
  7. ServerInfo[ TClearChat ] = true;
  8.  
  9. for( new j; j < 96; j++ ) {
  10. SendClientMessageToAll( -1, " " );
  11. }
  12. new string[ 128 ];
  13. if( PlayerInfo[ playerid ][ xAdmin ] >= 1 ) { format( string, sizeof( string ), ""col_crvena"#ClearChat: "col_white"%s je ocistio chat.", ImeIgraca( playerid ) ); }
  14. SendClientMessageToAll(SERVERBOJA, string );
  15. SendClientMessageToAll(SERVERBOJA, ""col_loginboja"[ADMIN] Chat je ociscen od strane admina." );
  16. }
  17. else return GRESKA( playerid, "Niste u mogucnosti koristiti ovu komandu." );
  18. return 1;
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement