SA-MP Forums Archive
/colour cmd? - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: /colour cmd? (/showthread.php?tid=179510)



/colour cmd? - knackworst - 27.09.2010

Do you guys know how to make a /colour command , to change your name colour?


Re: /colour cmd? - Code_Red - 27.09.2010

SetPlayerColor


Re: /colour cmd? - knackworst - 27.09.2010

how to make /setplayercolor?


Re: /colour cmd? - [Lsrcr]Rafa - 27.09.2010

u need to make stuff down this

pawn Код:
if( !strcmp(cmdtext,"/color",true ))
{
     //Stuff !!!
     return 1;
}
I can't explain now cause am in school ...
Cya


Re: /colour cmd? - Basicz - 27.09.2010

pawn Код:
if(!strcmp(cmdtext, "/Red", true))
{
SetPlayerColor(playerid, 0xFF0000FF);
return 1;
}
if(!strcmp(cmdtext, "/Grey", true))
{
SetPlayerColor(playerid, 0xAFAFAFAA);
return 1;
}
Add more colours.


Re: /colour cmd? - knackworst - 27.09.2010

I want a colour command with over 200 colours, like awesome stuntages.. you can customize your color there with 255 255 255
red green blue


Re: /colour cmd? - LarzI - 27.09.2010

Then you need an RGB to hex function.

EDIT: This might work - https://sampforum.blast.hk/showthread.php?tid=143589


Re: /colour cmd? - knackworst - 27.09.2010

what's that?

oh and btw, I want regular players to be able to set their colours...
not that an admin always have to /setplayercolour


Re: /colour cmd? - LarzI - 27.09.2010

RGB = 0-255, HEX = 00-FF


Re: /colour cmd? - knackworst - 27.09.2010

So if I put that script in my server I can use /colour <> <> <> ?