Author Topic: Ranks  (Read 1699 times)

Hi, I'm trying to make a rank add-on and I don't know how to say if an Admin joins his prefix gets set too 'A'. Can anyone one help me?
:cookie:

Hi, I'm trying to make a rank add-on and I don't know how to say if an Admin joins his prefix gets set too 'A'. Can anyone one help me?
:cookie:

Run a trace and see what gets called when players join the server. From there, you can alter the %client.clanPrefix tag.

I made a script like this.

So, heres what your gonna do:

Code: [Select]
~snip~

Basically, this code opens it up, and tells the server to listen for when a admin or super admin has spoken.
thats what this is for.
Code: [Select]
function serverCmdMessageSent(%client,%msg)
then, from there, its basically just finding out if the person spoken is a admin or super admin, and replacing the clan tag prefixes.
« Last Edit: March 18, 2013, 08:25:04 AM by Aerodynamic »


Hey, can you not spoonfeed him code please, now he's just going to copy paste your done-wrong code and not learn anything.

Hey, can you not spoonfeed him code please, now he's just going to copy paste your done-wrong code and not learn anything.

i couldnt help it.

i tried to add a little bit at the bottom for him to learn.

i couldnt help it.

i tried to add a little bit at the bottom for him to learn.
Honestly, the best thing to do for new people is to not give them code. It's better to just explain it to them because what they're asking is usually waaaay too broad or too big.

Coding help should be for help like "Help! I cannot figure out how to organize my data." or "Trouble setting up SQL queries" and not topics like "How do I make a gun" or "How do I make a RTB like mod." Coding help is supposed to be more of a last resort for debugging problems than a thing to pull large chunks of code from.

Honestly, the best thing to do for new people is to not give them code. It's better to just explain it to them because what they're asking is usually waaaay too broad or too big.

Coding help should be for help like "Help! I cannot figure out how to organize my data." or "Trouble setting up SQL queries" and not topics like "How do I make a gun" or "How do I make a RTB like mod." Coding help is supposed to be more of a last resort for debugging problems than a thing to pull large chunks of code from.

Yeah, your right. Snipping...

Hey, can you not spoonfeed him code please, now he's just going to copy paste your done-wrong code and not learn anything.

Plus it isn't done wrong. It works, it's one of my private mods.

Plus it isn't done wrong. It works, it's one of my private mods.

Just because it works doesn't mean it's done right.