Post: [C#] Custom Class Names
04-17-2014, 01:48 AM #1
(adsbygoogle = window.adsbygoogle || []).push({}); I thought I'd release this, even though this has been released on Xbox for a year or so, but I haven't seen it over here. It's pretty simple, just a command to use with Sv_SendGameServerCommand to customize your class names!
C#

First you're going to need this:
    
public string getHex(string txt)
{
string myHexString = BitConverter.ToString(Encoding.ASCII.GetBytes(txt));
return myHexString.Replace("-", "");
}


This just converts a string to hex values, which is needed with the stats command!


And this is an example of how to use it for all clients

This also gives their classes Desert Eagles, camos and what not, you can just edit that out of the command though.
    

public void customClassnames(int client, string cls)
{
string classnames = getHex(cls);
MW2.SV_SendServerCommand(client, "N 3040 5E31" + classnames + "00 3104 5E32" + classnames + "00 3168 5E33" + classnames + "00 3232 5E34" + classnames + "00 3296 5E35" + classnames + "00 3360 5E36" + classnames + "00 3424 5E31" + classnames + "00 3488 5E32" + classnames + "00 3552 5E33" + classnames + "00 3616 5E34" + classnames + "00 3010 06 3022 10 3074 07 3086 05 3138 11 3150 03 3202 12 3214 13 3394 06 3406 04 3458 11 3470 06 3522 06 3534 12 3586 12 3598 07 3266 06 3278 07 3330 11 3342 12 3264 11 3276 12 3328 06 3340 09 3038 05 3550 05 3614 05 3486 05 3422 05 3358 05 3294 05 3230 05 3166 05 3102 05 3038 05 2072 144C044C1044C10O");
}


Credits

Imcs - All client stats
Xx jAmes t xX - Classname stat entry
Me - Porting to PS3 and c#
(adsbygoogle = window.adsbygoogle || []).push({});

The following 4 users say thank you to Black Panther for this useful post:

Mango_Knife, John, NotALegitPlayer, Notorious

The following user groaned Black Panther for this awful post:

primetime43
04-18-2014, 10:32 PM #2
Do You Have Skype?
04-21-2014, 07:16 AM #3
Mango_Knife
In my man cave
Originally posted by AlmightySo View Post
I thought I'd release this, even though this has been released on Xbox for a year or so, but I haven't seen it over here. It's pretty simple, just a command to use with Sv_SendGameServerCommand to customize your class names!

First you're going to need this:
    
public string getHex(string txt)
{
string myHexString = BitConverter.ToString(Encoding.ASCII.GetBytes(txt));
return myHexString.Replace("-", "");
}


This just converts a string to hex values, which is needed with the stats command!


And this is an example of how to use it for all clients

This also gives their classes Desert Eagles, camos and what not, you can just edit that out of the command though.
    

public void customClassnames(int client, string cls)
{
string classnames = getHex(cls);
MW2.SV_SendServerCommand(client, "N 3040 5E31" + classnames + "00 3104 5E32" + classnames + "00 3168 5E33" + classnames + "00 3232 5E34" + classnames + "00 3296 5E35" + classnames + "00 3360 5E36" + classnames + "00 3424 5E31" + classnames + "00 3488 5E32" + classnames + "00 3552 5E33" + classnames + "00 3616 5E34" + classnames + "00 3010 06 3022 10 3074 07 3086 05 3138 11 3150 03 3202 12 3214 13 3394 06 3406 04 3458 11 3470 06 3522 06 3534 12 3586 12 3598 07 3266 06 3278 07 3330 11 3342 12 3264 11 3276 12 3328 06 3340 09 3038 05 3550 05 3614 05 3486 05 3422 05 3358 05 3294 05 3230 05 3166 05 3102 05 3038 05 2072 144C044C1044C10O");
}


Credits

Imcs - All client stats
Xx jAmes t xX - Classname stat entry
Me - Porting to PS3 and c#


SV Class Name? :0
Nice 1.

Copyright © 2026, NextGenUpdate.
All Rights Reserved.

Gray NextGenUpdate Logo