Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:cc( playerid, params[], help) {
- if( PlayerInfo[ playerid ][ xAdmin ] >= 1 || PlayerInfo[ playerid ][ xSupporter ] >=3 ) {
- if( ServerInfo[ TClearChat ] == true ) return GRESKA( playerid, "Chat mozes brisati svakih 5 sekundi." );
- SetTimerEx( "Timer_ClearChat", 5000, false, "d", 0 );
- ServerInfo[ TClearChat ] = true;
- for( new j; j < 96; j++ ) {
- SendClientMessageToAll( -1, " " );
- }
- new string[ 128 ];
- if( PlayerInfo[ playerid ][ xAdmin ] >= 1 ) { format( string, sizeof( string ), ""col_crvena"#ClearChat: "col_white"%s je ocistio chat.", ImeIgraca( playerid ) ); }
- SendClientMessageToAll(SERVERBOJA, string );
- SendClientMessageToAll(SERVERBOJA, ""col_loginboja"[ADMIN] Chat je ociscen od strane admina." );
- }
- else return GRESKA( playerid, "Niste u mogucnosti koristiti ovu komandu." );
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement