Question
#9

Quote:
Originally Posted by Dutheil
Посмотреть сообщение
PHP код:
CreateRGB(rgb)
{   
    return ( ((
0xff) << 16) + ((0xff) << 8) + (0xff) );

Ready Have
PHP код:
YCMD:mycolor(playerid,params[], help)
{
    
#pragma unused help
    #pragma unused params
    
if(Account[playerid][VipLevel] < 1) return  SendClientMessage(playerid,COLOR_RED,"Error: {FFFFFF}You are not a Donator Member!");
    new 
Redrebels;
    new 
Green;
    new 
Blue;
    if(
sscanf(params"ddd"Redrebels,Green,Blue))
    {
        
SendClientMessageplayerid,COLOR_RED"Usage: {FFFFFF}/mycolor [0-255] [0-255] [0-255]");
        return 
1;
    }
    if((
Redrebels >= && Green >= && Blue >= 0) && (Redrebels <= 255 && Green <= 255 && Blue <= 255))
    {
        new 
mixedColor 0;
        
mixedColor = (Redrebels << 24) + (Green << 16) + (Blue << 8) + 255;
        
SetPlayerColor(playeridmixedColor);
        
SendClientMessage(playerid, -1"Done!");
        return 
1;
    }
    else
    {
        
SendClientMessage(playerid, -1"Error: one or more channels are out of bounds (0<>255)");
        return 
1;
    }

i Need To save this RGB for Vips and if the Vip wants save it he do /resetcolor
Reply


Messages In This Thread
RGB Colors Help +rep - by anassmaroc - 18.08.2015, 10:20
Re: Question - by LetsOWN[PL] - 18.08.2015, 10:38
Re : Re: Question - by anassmaroc - 18.08.2015, 10:49
Re : Question - by anassmaroc - 18.08.2015, 18:33
Re: Question - by ZToPMaN - 18.08.2015, 18:42
Re : Re: Question - by anassmaroc - 18.08.2015, 18:44
Re : Question - by Dutheil - 18.08.2015, 18:46
Re: Question - by ZToPMaN - 18.08.2015, 18:51
Re : Question - by anassmaroc - 18.08.2015, 18:53
Re : Question - by anassmaroc - 19.08.2015, 09:47

Forum Jump:


Users browsing this thread: 3 Guest(s)