Help With SetPlayerColor!
#1

Hi, i've set that then player pickups job, his name color changes, but after reconnect or restart, his name color is again as newbie! What i Did Wrong?! Where should i Put SetPlayerColor Code that After Relog they still has their name Colored!?
Reply
#2

You need to save that players colour when they login/disconnect, and then call the players color from file when they reconnect/login again.

(Save the colour to file, then call the colour code/name back into the script on connection)

No Problem
Reply
#3

How can i do that?
Reply
#4

With DINI, or something even more basic if you dont know how. You could use dini to create a "colour.ini" file, and save the players name with their color, then fetch their name and colour line from that file, and use SetPlayerColour to set the players colour - Or just make them keep selecting that job again and again?
Reply
#5

Could you write exactly what i need to write? How i need to do the connection Between colour.ini and MY Gamemode Saves? Maybe you could create for me?
Reply
#6

I dont do much with Dini unfortunately, i just know that it can be done that way

I could have a try though Give me about 10 mins
Reply
#7

*Could you please post the script with the pickups in, so i can fetch the player colours etc

Thanks
Ash
Reply
#8

you need to

make a .ini file and make it read from file ... .ini

then make a code that makes it save
like its hard to xplain

make like a admin script

admin have red colour's that what you need doenload luxadmin and see their code that helped me
Reply
#9

I said all that lol :S
Reply
#10

can someone help me to do it? I can send whole server if someone could do it?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)