You Will Need This:
public string getHex(string txt)
{
string myHexString = BitConverter.ToString(Encoding.ASCII.GetBytes(txt));
return myHexString.Replace("-", "");
}
public string getHex(string txt)
{
string myHexString = BitConverter.ToString(Encoding.ASCII.GetBytes(txt));
return myHexString.Replace("-", "");
}
Example using this for all clients:
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");
}
This also gives their classes Desert Eagles, camos and what not, you can just edit that out of the command
{
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");
}
This also gives their classes Desert Eagles, camos and what not, you can just edit that out of the command
Last edited by a moderator: