SA-MP Forums Archive
/color [colorname/id]? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: /color [colorname/id]? (/showthread.php?tid=323953)



/color [colorname/id]? - niels44 - 07.03.2012

hey guys,

i have searched ****** and samp forum for this but couldnt really find something for this..
but
someone knows a command thats for EVERY player which can do: /color [color] or /mycolor [color]??

some ppl asked me for that cmd but the only 1 i have is: /setcolor [playerid] [color] but i dont want that playerid there cuz then everyone could set a color of someone else...

anyone knows this cmd?

greets niels

also if the colors have to be defined then if you have it that would be great but else i can also define them by myself i just need the code for it XD

im using ZCMD


Re: /color [colorname/id]? - Campbell- - 07.03.2012

The command /mycolor is obviously setting your own color. But what's the command /color doing if you don't want to set the color of someone else?


Re: /color [colorname/id]? - niels44 - 07.03.2012

yeah i want to have cmd that when a player does /mycolor [color]
so for example: /mycolor green.
and his color gets set to green and with "his color" i mean his name and his color on the minimap XD

hope you understand

so if he/she does /mycolor red the color gets red etc.


Re: /color [colorname/id]? - Vince - 07.03.2012

Written from top of my head. It compiles, but I haven't tested it ingame.
http://pastebin.com/kEP6pMGM


Re: /color [colorname/id]? - niels44 - 07.03.2012

thnx