/cc - CarColour
#3

Quote:
Originally Posted by Dare Devil.....
Посмотреть сообщение
pawn Код:
CMD:cc(playerid, params[])
{
    new
        colour1,
        colour2
    ;
    if(sscanf(params, "ii", colour1, colour2)) SendClientMessage(playerid, COLOR_CHARTREUSE, "(SERVER) {33CCFF}USAGE: {FFFFFF}/cc [0-255] [0-255]");
   SendClientMessage(playerid,-1,You have changed your car color to [%d] and [%d],colour1,colour2);//I added this
    if(!isnull(params))
    {
        if(GetPlayerState(playerid) == PLAYER_STATE_DRIVER) ChangeVehicleColor(GetPlayerVehicleID(playerid), colour1, colour2);
        else SendClientMessage(playerid, COLOR_CHARTREUSE, "(SERVER) {FF0000}ERROR: {FFFFFF}You must be the driver of the vehicle in order to use this command.");
    }
    return 1;
}
It will not Send Client Message also.
I've already tried it but the problem regarding the "solid colour" still remains. If I type /cc 3 it will make the main colour red but it will also leave the black stripes. I wish to set it up so that if the player only types one colour ID, that the vehicle is a solid colour as opposed to that colour and black.
Reply


Messages In This Thread
/cc - CarColour - by PCheriyan007 - 17.08.2012, 02:41
Re: /cc - CarColour - by Dare Devil..... - 17.08.2012, 04:52
Re: /cc - CarColour - by PCheriyan007 - 17.08.2012, 16:10
Re: /cc - CarColour - by Youarex - 17.08.2012, 16:36
Re: /cc - CarColour - by PCheriyan007 - 17.08.2012, 17:17
Re: /cc - CarColour - by Youarex - 17.08.2012, 19:01
Re: /cc - CarColour - by Dan. - 17.08.2012, 19:04
Re: /cc - CarColour - by mrsamp - 17.08.2012, 19:54
Re: /cc - CarColour - by PCheriyan007 - 17.08.2012, 19:56
Re: /cc - CarColour - by PCheriyan007 - 17.08.2012, 20:06

Forum Jump:


Users browsing this thread: 1 Guest(s)