/colour cmd?
#1

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

SetPlayerColor
Reply
#3

how to make /setplayercolor?
Reply
#4

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
Reply
#5

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

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
Reply
#7

Then you need an RGB to hex function.

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

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
Reply
#9

RGB = 0-255, HEX = 00-FF
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)