View Full Version : auto save/load color

16/05/2015, 03:44 PM
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

16/05/2015, 03:55 PM
Code? Simply use https://wiki.sa-mp.com/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

16/05/2015, 04:30 PM
i dont understand it

16/05/2015, 04:37 PM
Try what Jayden said.
P.S don't click on the signature of JaydenJason, it's a fake link.

18/05/2015, 01:30 AM
is there a way to use dini to save/load color?

18/05/2015, 03:51 AM
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.

18/05/2015, 08:43 PM
my filterscipt have saving/loading not gamemode

18/05/2015, 08:53 PM
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 ?

18/05/2015, 09:06 PM
i dont understand how to script it with zcmd

18/05/2015, 09:09 PM
So check this out and learn... http://forum.sa-mp.com/showthread.php?t=91354

18/05/2015, 09:22 PM
i know how to use zcmd but i need someone to show me how to make a auto saving/load player color

18/05/2015, 10:33 PM
CMD:red(playerid, params[])
SetPlayerColor(playerid, COLOR_RED);
SendClientMessage(playerid, COLOR_LIME, "Your name color successfully change to Red!");
return 1;
idk how to save this color in the player account

19/05/2015, 02:26 AM
any one?:(

19/05/2015, 11:33 AM
please help me