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

Plugin Prefix for Say and Say_Team


Post New Thread Reply   
 
Thread Tools Display Modes
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 - 149 views - 1.6 KB)
__________________
CS:CZ > CS 1.6

Last edited by Ace67; 12-25-2020 at 14:32.
Ace67 is online now
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 12-25-2020 , 13:52   Re: Plugin Prefix for Say and Say_Team
Reply With Quote #2

Quote:
i was see on other plugin who add prefix don't have option for add prefix for say
https://forums.alliedmods.net/showthread.php?t=297952 - this one has it, but you don't know how to make it work.

Anyways, poorly made and hardcoded plugin, redundant for ~2021.
You never mentioned what the prefixes are (Zombie/Builder) and how someone can change them.
Having that in mind, why should anyone edit the .sma file in order to change them? Cvars exist.

Code:
#define VERSION "6.0"

How did that happen?
__________________
OciXCrom is offline
Send a message via Skype™ to OciXCrom
Ace67
Senior Member
Join Date: Sep 2020
Location: France
Old 12-25-2020 , 14:28   Re: Plugin Prefix for Say and Say_Team
Reply With Quote #3

Quote:
Originally Posted by OciXCrom View Post
https://forums.alliedmods.net/showthread.php?t=297952 - this one has it, but you don't know how to make it work.

Anyways, poorly made and hardcoded plugin, redundant for ~2021.
You never mentioned what the prefixes are (Zombie/Builder) and how someone can change them.
Having that in mind, why should anyone edit the .sma file in order to change them? Cvars exist.

Code:
#define VERSION "6.0"

How did that happen?
hmmm..., i have fixed my post
__________________
CS:CZ > CS 1.6
Ace67 is online now
Natsheh
Veteran Member
Join Date: Sep 2012
Old 12-25-2020 , 21:21   Re: Plugin Prefix for Say and Say_Team
Reply With Quote #4

Plugin is Approved !
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
Reply



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 18:11.


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