Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:a( playerid, params[] ) {
- if( PlayerInfo[ playerid ][ xMute ] != 0) return GRESKA( playerid, "Ne mozete pricati, usutkani ste.");
- new text[ 128 ], string1[180];
- if( sscanf( params, "s[128]", text ) ) return KORISCENJE( playerid, "/a [ text ]" );
- if( PlayerInfo[ playerid ][ xAdmin ] < 1 && PlayerInfo[ playerid ][ xSpecAdmin ] < 1 ) return GRESKA( playerid, "Niste u mogucnosti koristiti ovu komandu." );
- if( PlayerInfo[ playerid ][ xSkriptaRank ] == 1 ) {
- format( string1, sizeof( string1 ), "[A] Skripter - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- else if( PlayerInfo[ playerid ][ xSkriptaRank ] == 2 ) {
- format( string1, sizeof( string1 ), "[A] Skripter - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- else if( PlayerInfo[ playerid ][ xSkriptaRank ] == 3 ) {
- format( string1, sizeof( string1 ), "[A] Mapper - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- else if( PlayerInfo[ playerid ][ xSkriptaRank ] == 6 ) {
- format( string1, sizeof( string1 ), "[A] Co-Owner - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- else if( PlayerInfo[ playerid ][ xSkriptaRank ] == 7 ) {
- format( string1, sizeof( string1 ), "[A] Head Mapper - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- else if( PlayerInfo[ playerid ][ xSkriptaRank ] == 8 ) {
- format( string1, sizeof( string1 ), "[A] Predsednik - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- else if( PlayerInfo[ playerid ][ xAdmin ] == 7 ) {
- format( string1, sizeof( string1 ), "[A] Owner - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- else if( PlayerInfo[ playerid ][ xAdmin ] == 6 ) {
- format( string1, sizeof( string1 ), "[A] Direktor - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- else if( PlayerInfo[ playerid ][ xAdmin ] == 5 ) {
- format( string1, sizeof( string1 ), "[A] Head Admin - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- else if( PlayerInfo[ playerid ][ xAdmin ] == 4 ) {
- format( string1, sizeof( string1 ), "[A] Admin 4 - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- else if( PlayerInfo[ playerid ][ xAdmin ] == 3 ) {
- format( string1, sizeof( string1 ), "[A] Admin 3 - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- else if( PlayerInfo[ playerid ][ xAdmin ] == 2 ) {
- format( string1, sizeof( string1 ), "[A] Admin 2 - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- else if( PlayerInfo[ playerid ][ xAdmin ] == 1 ) {
- format( string1, sizeof( string1 ), "[A] Admin 1 - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- else if( PlayerInfo[ playerid ][ xSpecAdmin ] == 1 ) {
- format( string1, sizeof( string1 ), "[A] Spec Admin - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- AdminPoruka( 0xF6FF00FF, string1 );
- new string[ 128 ];
- format( string, sizeof( string ), "Admin %s: %s", ImeIgraca( playerid ), text );
- LogSave( "Ostalo/LogAdminChat.log", string );
- return true;
- }
- CMD:hc( playerid, params[] ) {
- if( PlayerInfo[ playerid ][ xZatvor ] != 0 ) return GRESKA( playerid, "Ne mozes koristi ovu komandu dok si u jailu." );
- if( PlayerInfo[ playerid ][ xMute ] != 0) return GRESKA( playerid, "Ne mozete pricati, usutkani ste.");
- new text[ 128 ], string1[180];
- if( sscanf( params, "s[128]", text ) ) return KORISCENJE( playerid, "/hc [ text ]" );
- if( PlayerInfo[ playerid ][ xHelper ] >= 1 || PlayerInfo[ playerid ][ xAdmin ] >= 1 || PlayerInfo[ playerid ][ xSpecAdmin ] >= 1 ) {
- if( ToggedE == false ) return GRESKA( playerid, "HC chat je trenutno iskljucen od strane Admina." );
- if( PlayerInfo[ playerid ][ xSkriptaRank ] == 1 ) {
- format( string1, sizeof( string1 ), "[HC] Skripter - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- else if( PlayerInfo[ playerid ][ xSkriptaRank ] == 2 ) {
- format( string1, sizeof( string1 ), "[HC] Skripter - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- else if( PlayerInfo[ playerid ][ xSkriptaRank ] == 3 ) {
- format( string1, sizeof( string1 ), "[HC] Mapper - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- else if( PlayerInfo[ playerid ][ xSkriptaRank ] == 6 ) {
- format( string1, sizeof( string1 ), "[HC] Co. Owner - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- else if( PlayerInfo[ playerid ][ xSkriptaRank ] == 7 ) {
- format( string1, sizeof( string1 ), "[HC] Head Mapper - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- else if( PlayerInfo[ playerid ][ xSkriptaRank ] == 8 ) {
- format( string1, sizeof( string1 ), "[HC] Predsednik - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- else if( PlayerInfo[ playerid ][ xAdmin ] == 7 ) {
- format( string1, sizeof(string1), "[HC] Owner - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- else if( PlayerInfo[ playerid ][ xAdmin ] == 6 ) {
- format( string1, sizeof(string1), "[HC] Direktor - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- else if( PlayerInfo[ playerid ][ xAdmin ] == 5 ) {
- format( string1, sizeof(string1), "[HC] Head Admin - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- else if( PlayerInfo[ playerid ][ xAdmin ] == 4 ) {
- format( string1, sizeof( string1 ), "[HC] Admin 4 - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- else if( PlayerInfo[ playerid ][ xAdmin ] == 3 ) {
- format( string1, sizeof( string1 ), "[HC] Admin 3 - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- else if( PlayerInfo[ playerid ][ xAdmin ] == 2 ) {
- format( string1, sizeof( string1 ), "[HC] Admin 2 - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- else if( PlayerInfo[ playerid ][ xAdmin ] == 1 ) {
- format( string1, sizeof( string1 ), "[HC] Admin 1 - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- else if( PlayerInfo[ playerid ][ xSpecAdmin ] == 1 ) {
- format( string1, sizeof(string1), "[HC] Spec Admin - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- else if( PlayerInfo[ playerid ][ xHelper ] == 3 ) {
- format( string1, sizeof(string1), "[HC] V. Helpera - %s: "col_white"%s", ImeIgraca( playerid ), text );
- }
- else if( PlayerInfo[ playerid ][ xHelper ] >= 1 && PlayerInfo[ playerid ][ xHelper ] <= 2 ) {
- format( string1, sizeof(string1), "[HC] Helper - (%d) %s: "col_white"%s", PlayerInfo[ playerid ][ xHelper ], ImeIgraca( playerid ), text );
- }
- RPTChat( ZELENA, string1 );
- new string[ 128 ];
- format( string, sizeof( string ), "Admin/Helper %s: %s", ImeIgraca( playerid ), text );
- LogSave( "Ostalo/LogAdminChat.log", string );
- }
- else return GRESKA( playerid, "Niste u mogucnosti koristiti ovu komandu." );
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement