21.07.2012, 19:04
I have here vcolor command. Is it possible not to fill the second color or the /vcolor [0-255] [0-255]?
I mean, if playayer use /vcolor 1 the color of the vehicle changes without filling the other one.
I mean, if playayer use /vcolor 1 the color of the vehicle changes without filling the other one.
Код:
COMMAND:vcolor(playerid, params[]) { new color1,color2; if(sscanf(params, "ii", color1, color2)) return SendClientMessage(playerid, COLOR_RED, "Usage: /vcolor [0-255] [0-255]"); if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) return SendClientMessage(playerid, COLOR_GREY, "You are not in a vehicle."); ChangeVehicleColor(GetPlayerVehicleID(playerid),color1,color2); GameTextForPlayer(playerid,"~y~Vehicle Color Changed",2000,3); return 1; }