name color
#1

can you please help me where I can find name color change using command /color?
Reply
#2

Hope that's what you looking for , small example
pawn Код:
CMD:redcolor(playerid ,params[])
{
    SetPlayerColor(playerid,0xFF0000FF);
    return 1;
}
If you are looking for dialog when player type /mycolor for example here you go :
http://pastebin.com/0ZFp1bRf
Reply
#3

Quote:
Originally Posted by SilentSoul
Посмотреть сообщение
Hope that's what you looking for , small example
pawn Код:
CMD:redcolor(playerid ,params[])
{
    SetPlayerColor(playerid,0xFF0000FF);
    return 1;
}
If you are looking for dialog when player type /mycolor for example here you go :
http://pastebin.com/0ZFp1bRf
But how about saving? iam using y_INI

Thanks man. Saw your new edited. Im going to use this.
Reply
#4

for example:
pawn Код:
#define GREEN 0x006400FF
if (strcmp("/green", cmdtext, true, 10) == 0)
    {
        SetPlayerColor(playerid, GREEN);
        SendClientMessage(playerid, GREEN, "You have got a green colour.");
        return 1;
    }
Reply
#5

https://sampforum.blast.hk/showthread.php?tid=273863
sorry about old link but you didn't mention your requirments for fs
Reply
#6

Quote:
Originally Posted by SilentSoul
Посмотреть сообщение
https://sampforum.blast.hk/showthread.php?tid=273863
sorry about old link but you didn't mention your requirments for fs
Thansk alot +rep I will try this later. And btw do you know why is that when I connect to the server my color is always orange?
Reply
#7

Because its samp default color you can change this default color by using this
pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerColor(playerid, 0xFFFFFFAA); //this will set default  color to white
    return 1;
}
You can change color from here
http://www.colorpicker.com/
Add also add AA at the last of color hex code example i found white color on colorpicker as FFFFFF
Must be changed to :
0xFFFFFFAA

0x"Colorhere"AA
Reply
#8

Quote:
Originally Posted by SilentSoul
Посмотреть сообщение
Because its samp default color you can change this default color by using this
pawn Код:
public OnPlayerSpawn(playerid)
{
    SetPlayerColor(playerid, 0xFFFFFFAA); //this will set default  color to white
    return 1;
}
You can change color from here
http://www.colorpicker.com/
Add also add AA at the last of color hex code example i found white color on colorpicker as FFFFFF
Must be changed to :
0xFFFFFFAA

0x"Colorhere"AA
Ohh nice! And last lastly how about I want to make random color each player who connect. Lets say player1 join = green, player2 = yellow and so on. maybe around 7-8 different colors. Do you know how?

Good job man. You really keeping giving ideas.
Reply
#9

Quote:

Ohh nice! And last lastly how about I want to make random color each player who connect. Lets say player1 join = green, player2 = yellow and so on. maybe around 7-8 different colors. Do you know how?

Good job man. You really keeping giving ideas.

I don't think this possible without creating gTeam or Team class selections read more from there
https://sampwiki.blast.hk/wiki/PAWN_tutorial
Reply
#10

Maybe this will help you !!

PHP код:
//---Add this on under all your includes---//
new p_Colors100 ] =
{
    
0xFF8C13FF0xC715FFFF0x20B2AAFF0xDC143CFF0x6495EDFF0xf0e68cFF0x778899FF0xFF1493FF0xF4A460FF0xEE82EEFF0xFFD720FF0x8b4513FF0x4949A0FF0x148b8bFF0x14ff7fFF0x556b2fFF0x0FD9FAFF0x10DC29FF0x534081FF0x0495CDFF0xEF6CE8FF0xBD34DAFF0x247C1BFF0x0C8E5DFF0x635B03FF0xCB7ED3FF0x65ADEBFF0x5C1ACCFF0xF2F853FF0x11F891FF0x7B39AAFF0x53EB10FF0x54137DFF,
    
0x275222FF0xF09F5BFF0x3D0A4FFF0x22F767FF0xD63034FF0x9A6980FF0xDFB935FF0x3793FAFF0x90239DFF0xE9AB2FFF0xAF2FF3FF0x057F94FF0xB98519FF0x388EEAFF0x028151FF0xA55043FF0x0DE018FF0x93AB1CFF0x95BAF0FF0x369976FF0x18F71FFF0x4B8987FF0x491B9EFF0x829DC7FF0xBCE635FF0xCEA6DFFF0x20D4ADFF0x2D74FDFF0x3C1C0DFF0x12D6D4FF0x48C000FF0x2A51E2FF0xE3AC12FF,
    
0xFC42A8FF0x2FC827FF0x1A30BFFF0xB740C2FF0x42ACF5FF0x2FD9DEFF0xFAFB71FF0x05D1CDFF0xC471BDFF0x94436EFF0xC1F7ECFF0xCE79EEFF0xBD1EF2FF0x93B7E4FF0x3214AAFF0x184D3BFF0xAE4B99FF0x7E49D7FF0x4C436EFF0xFA24CCFF0xCE76BEFF0xA04E0AFF0x9F945CFF0xDCDE3DFF0x10C9C5FF0x70524DFF0x0BE472FF0x8A2CD7FF0x6152C2FF0xCF72A9FF0xE59338FF0xEEDC2DFF0xD8C762FF0x3FE65CFF
};
//------------HERE---------------//
public OnPlayerSpawn(playerid)
{
    
SetPlayerColor(playerid,p_Colors[random(100)]);
    return 
1;

It will make on player spawn, player's color will set from 100 random colors !!!
Sorry for my bad english
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)