prefix
Posted: 2017 Aug 04 20:00
kas cia ne taip ?:) noriu pridet admin vip prefixus
//AMXXPC compile.exe
// by the AMX Mod X Dev Team
//// som-shit.sma.sma
//
// C:\Users\Laimis\Desktop\scripting\som-shit.sma(714) : error 036: emp
ty statement
// C:\Users\Laimis\Desktop\scripting\som-shit.sma(715) : warning 217: l
oose indentation
// C:\Users\Laimis\Desktop\scripting\som-shit.sma(717) : error 036: emp
ty statement
//
// 2 Errors.
// Could not locate output file C:\Users\Laimis\Desktop\scripting\compiled\som-shit.amx (compile failed).
//
// Compilation Time: 1,83 sec
// ----------------------------------------
Press enter to exit ...
Code: Select all
if( is_team_msg ) { if( is_sndr_spec ) prefix = "^x01(Spectator) "; else if( sndr_team == 1 ) add( prefix[strlen(prefix)-1], 29, "^x01(Terrorist) " ); else if( sndr_team == 2 ) add( prefix[strlen(prefix)-1], 29, "^x01(Counter-Terrorist) " ); else if(get_user_flags(sndr) & ADMIN_IMMUNITY); // 714 else if( sndr_team == 2 ) add( prefix[strlen(prefix)-1], 29, "^x01(Counter-Terrorist) ^x04[ADMIN]" ); else if( sndr_team == 1 ) add( prefix[strlen(prefix)-1], 29, "^x01(Terrorist) ^x04[ADMIN]" ); else if(get_user_flags(sndr) & ADMIN_RESERVATION); //717 else if( sndr_team == 2 ) add( prefix[strlen(prefix)-1], 29, "^x01(Counter-Terrorist) ^x04[VIP]" ); else if( sndr_team == 1 ) add( prefix[strlen(prefix)-1], 29, "^x01(Terrorist) ^x04[VIP]" ); } format( msg, 512, "%s%s%s : %s%s", strlen( prefix ) > 1 ? prefix : "", COLCHAR[namecol], sndr_name, COLCHAR[msgcol], str4 ); return PLUGIN_HANDLED;}