Work Supports: CS:CZ and CS 1.6
********************************************* *******************************
*
* Version Ace67 - 25/12/2020
*
* Contact:
https://steamcommunity.com/id/ace67acc
*
* Sources:
* ConnorMcLeod (for the concept)
*
********************************************* *******************************
If you want know what is the prefixs [CT/T]
PHP 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 ) )
if(get_user_team(id) == 1){
new szPrefix[64] = "^x03[ZOMBIE]"; //This FOR TERRORISTS TEAM
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");
}
}
if(get_user_team(id) == 3){
new szPrefix[64] = ""; //This FOR SPECTATOR TEAM
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");
}
}
else if(get_user_team(id) == 2){
new szPrefix2[64] = "^x03[BUILDER]"; //This FOR CT TEAM
if(!equal(szTmp,"#Cstrike_Chat_All")){
add(szTmp2,charsmax(szTmp2),szPrefix2);
add(szTmp2,charsmax(szTmp2)," ");
add(szTmp2,charsmax(szTmp2),szTmp);
}
else{
add(szTmp2,charsmax(szTmp2),szPrefix2);
add(szTmp2,charsmax(szTmp2),"^x03 %s1^x01 : %s2");
}
}
*HEHE NOTE* I created this for adding prefix for CT and Terrorist i was see on other plugin who add prefix don't have option for add prefix for say
If you are having problems then compile it manually and see if that helps.