auto save/load color -
suni - 16.05.2015
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
Re: auto save/load color -
JaydenJason - 16.05.2015
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
Re: auto save/load color -
suni - 16.05.2015
i dont understand it
Re: auto save/load color -
FernandoLight - 16.05.2015
Try what Jayden said.
P.S don't click on the signature of JaydenJason, it's a fake link.
Re: auto save/load color -
suni - 18.05.2015
is there a way to use dini to save/load color?
Re: auto save/load color -
icra - 18.05.2015
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.
Re: auto save/load color -
suni - 18.05.2015
my filterscipt have saving/loading not gamemode
Re: auto save/load color -
amirm3hdi - 18.05.2015
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 ?
Re: auto save/load color -
suni - 18.05.2015
i dont understand how to script it with zcmd
Re: auto save/load color -
amirm3hdi - 18.05.2015
So check this out and learn...
https://sampforum.blast.hk/showthread.php?tid=91354