• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Lua LUA Code to change players name temporarily?

Candlejack

Don't hug me I'm scared
Joined
Jun 20, 2012
Messages
87
Reaction score
38
Location
nowhere
Is there a way so that when a player equips a certain helmet his name changes as long as it's on?

Could someone point me in the right direction? I can't seem to find a function for this or know if it's even possible :)
 
Could someone point me in the right direction? I can't seem to find a function for this or know if it's even possible :)

Well.. the direction is..
1-onEquip Function that kicks the player when he wear the helmet.. then a db.query code to change name in database .
2-onDeEquip function that also kicks the player when he take off the helmet.. then a db.query code to change name again to wat it was..
3-add another column in players table to save the old name.
 
Well.. the direction is..
1-onEquip Function that kicks the player when he wear the helmet.. then a db.query code to change name in database .
2-onDeEquip function that also kicks the player when he take off the helmet.. then a db.query code to change name again to wat it was..
3-add another column in players table to save the old name.

Thank you!
 
Back
Top