/paint
#5

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/paint", true) == 0)
    {
        if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, 0xFFFFF, "You must be in a vehicle!");

        return ChangeVehicleColor(GetPlayerVehicleID(playerid), random(255), random(255));
    }
    return 0;
}
Add that or replace it if you already have "OnPlayerCommandText"
Also delete the previous command.
Reply


Messages In This Thread
/paint - by ColdIce - 16.04.2011, 23:51
Re: /paint - by [L3th4l] - 16.04.2011, 23:56
Re: /paint - by ColdIce - 17.04.2011, 00:06
Re: /paint - by ColdIce - 17.04.2011, 00:57
Re: /paint - by [L3th4l] - 17.04.2011, 01:24
Re: /paint - by ColdIce - 17.04.2011, 09:08

Forum Jump:


Users browsing this thread: 1 Guest(s)