Author Topic: Messagesent uses txt... I guess  (Read 965 times)

Dunno how to title it really, but I'm trying to make it so you could type something like: "/id 231" and after that everything you put in the chat uses 231 in replace of like your name or something. I am bone dry on ideas after all of mine crash and burned.

Code: [Select]
function serverCmdid(%client,%id,%keytoreplace)
{
if(!%keytoreplace){
%id = strReplace(%name, "_", " ");//_s turned into spaces
}
else{
%id = strReplace(%name, %keytoreplace, " ");//[key]s turned into spaces
}
%client.name = %id;
}
untested. Probably wont work, but best thing i can think of without overwriting alot of stuff.

I got it working now, thanks a ton!