Raised This Month: $7 Target: $400
 1% 

Call of Duty prefix


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
TheBladerX
Member
Join Date: Dec 2012
Location: Slovakia
Old 02-18-2018 , 10:23   Call of Duty prefix
Reply With Quote #1

Is there any way to make it show original call of duty tag, not the s1 : s2? Thanks.

Code:
public handleSayText(msgId,msgDest,msgEnt){
	new id = get_msg_arg_int(1);
	
	if(!is_user_connected(id))        return PLUGIN_CONTINUE;
	
	new szTmp[256],szTmp2[256]
	get_msg_arg_string(2,szTmp, charsmax( szTmp ) )
	
	new szPrefix[64]
	
	switch(get_pcvar_num(pCvarPrefixy)){
		case 1:{
			formatex(szPrefix,charsmax( szPrefix ),"^x04[%s]",nazwy_klas[klasa_gracza[id]]);
		}
		case 2:{
			formatex(szPrefix,charsmax( szPrefix ),"^x04[%d]",poziom_gracza[id]);
		}
		case 3:{
			formatex(szPrefix,charsmax( szPrefix ),"^x04[%s - %d]",nazwy_klas[klasa_gracza[id]],poziom_gracza[id]);
		}
	}
	
	if(!equal(szTmp,"#Cstrike_Chat_All")){
		add(szTmp2,charsmax(szTmp2),szPrefix);
		add(szTmp2,charsmax(szTmp2)," ");
		add(szTmp2,charsmax(szTmp2),szTmp);
	}
	else{
		add(szTmp2,charsmax(szTmp2),szPrefix);
		add(szTmp2,charsmax(szTmp2),"^x03 %s1 ^x01 :  %s2 ");
	}
	
	set_msg_arg_string(2,szTmp2);
	
	return PLUGIN_CONTINUE;
}
TheBladerX is offline
WhiteFang1319
Senior Member
Join Date: Jan 2017
Old 02-18-2018 , 10:57   Re: Call of Duty prefix
Reply With Quote #2

Try this plugin: https://forums.alliedmods.net/showpo...6&postcount=74
Idk if it'll work. I had saw it when this error came after HLDS update.
WhiteFang1319 is offline
TheBladerX
Member
Join Date: Dec 2012
Location: Slovakia
Old 02-18-2018 , 12:42   Re: Call of Duty prefix
Reply With Quote #3

Oh, it's actually working. Thank you.
TheBladerX is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 04:04.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode