Custom name
#2

I don't understand

1) If you want it so you can make a custom name when a player puts on a mask, make a command. This command would then make a global variable (UsingCustomName[MAX_PLAYERS], etc) a value (usually 1).

Then it would assign another global variable (a string) the name that you type. (CustomName[MAX_PLAYERS][128], etc)

Then make it so it will add a text label above the players head with the custom name or something.

2) If you want a randomly generated ID number or something, just do the same as above but instead of CustomName[MAX_PLAYERS][128] just make it CustomName[MAX_PLAYERS] and instead of inputting something, it would generate a random ID or something (random(45123123123);)

I'm not going to help you with this, doesn't even seem like you attempted it.
Reply


Messages In This Thread
Custom name - by CloW - 18.06.2013, 21:18
Re: Custom name - by Kindred - 18.06.2013, 21:28
Re: Custom name - by CloW - 18.06.2013, 21:44

Forum Jump:


Users browsing this thread: 1 Guest(s)