auto save/load color
#1

i do i script a color saving/loading system for zcmd?

when a player type /red, his color changed to red. when he disconnect and connect, he spawn with a different color.

please help
Reply
#2

Code? Simply use https://sampwiki.blast.hk/wiki/GetPlayerColor

Save it into your player file as a variable or in an enumerator,

If you show a couple lines of your saving and loading, along with your colouring command we can make it save and load
Reply
#3

i dont understand it
Reply
#4

Try what Jayden said.
P.S don't click on the signature of JaydenJason, it's a fake link.
Reply
#5

is there a way to use dini to save/load color?
Reply
#6

Does your gamemode haves a loading and saving system?
If yes, you can show me and i'll edit it to make it work with colors system too.
Else, you'll have to code one following a guide in this forum. If you have got some SQL knowledges, i suggest you using MySQL R5 plugin (by BlueG), it's the best loading/saving include for SA-MP gamemodes.
Reply
#7

my filterscipt have saving/loading not gamemode
Reply
#8

Well when a player types /red, you need to save the player's color, and load it when the player logs in or connects...

What part don't you understand ?
Reply
#9

i dont understand how to script it with zcmd
Reply
#10

So check this out and learn... https://sampforum.blast.hk/showthread.php?tid=91354
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)