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

change name in chat


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
generals
Senior Member
Join Date: Aug 2018
Old 02-04-2019 , 08:19   change name in chat
Reply With Quote #1

hi guys

is there any way to change name in chat ? (css)

like this:

!name (any name)

tnx

Last edited by generals; 02-04-2019 at 08:19.
generals is offline
cristian20042
AlliedModders Donor
Join Date: Jun 2016
Location: Romania
Old 02-04-2019 , 19:43   Re: change name in chat
Reply With Quote #2

PHP Code:
#include <sourcemod>  
#include <sdktools>

public Plugin myinfo =  
{  
    
name "CSS Change Name",  
    
author "SniperHero",  
    
description "Changes the name with !name",  
    
version "1.0",  
    
url ""  
};  

public 
OnPluginStart()  
{  
    
RegConsoleCmd("sm_name"CMD_Name"Changes Name");
}  

void ChangeTheName(int clientchar[] newname)
{
    
SetClientName(clientnewname);
}

public 
Action CMD_Name(int clientint args)
{
    if (
args 1)
    {
        
ReplyToCommand(client"[SM] Usage: sm_name [newname]");
        return 
Plugin_Handled;
    }

    
decl String:name[192];
    
GetCmdArgString(namesizeof(name));
    
    
ChangeTheName(clientname);
    
    
    return 
Plugin_Handled;

Attached Files
File Type: sp Get Plugin or Get Source (name.sp - 93 views - 714 Bytes)
__________________
Steam - https://steamcommunity.com/id/sniperheroofficialu/
Discord - SniperHero#8545

Last edited by cristian20042; 02-04-2019 at 19:45.
cristian20042 is offline
generals
Senior Member
Join Date: Aug 2018
Old 02-05-2019 , 04:11   Re: change name in chat
Reply With Quote #3

thx .. its worked

Last edited by generals; 02-05-2019 at 04:25.
generals is offline
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 12:30.


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