Raised This Month: $12 Target: $400
 3% 

Plugin Prefix for Say and Say_Team


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Plugin Info:     Modification:   ALL        Category:   Admin Commands       
Ace67
Senior Member
Join Date: Sep 2020
Location: France
Old 12-25-2020 , 11:34   Plugin Prefix for Say and Say_Team
Reply With Quote #1

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,szTmpcharsmaxszTmp ) )
    
    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.
Attached Files
File Type: sma Get Plugin or Get Source (PREFIX.sma - 157 views - 1.6 KB)
__________________
CS:CZ > CS 1.6

Last edited by Ace67; 12-25-2020 at 14:32.
Ace67 is offline
 



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 14:51.


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