SA-MP Forums Archive
Custom name - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Custom name (/showthread.php?tid=444910)



Custom name - CloW - 18.06.2013

Can I do any custom name that the player will use it only when player use mask, any other function not setplayername?


Re: Custom name - Kindred - 18.06.2013

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.


Re: Custom name - CloW - 18.06.2013

This first but not label.I want custom name pr '((MASKED))((ID))'