11.09.2014, 09:07
(
Последний раз редактировалось MBilal; 11.09.2014 в 11:20.
)
PHP код:
CMD:vcolor(playerid, params[])
{
if(Player[playerid][pVip] >= 1)
{
new color1,color2;
if(sscanf(params, "ii", color1, color2)) return SendClientMessage(playerid, COLOR_RED, "[Database]:: /vcolor [color1] [color2]");
if(GetPlayerState(playerid) == PLAYER_STATE_ONFOOT) return SendClientMessage(playerid,COLOR_KRED, "You are not in a vehicle.");
ChangeVehicleColor(GetPlayerVehicleID(playerid),color1,color2);
SendClientMessage(playerid,COLOR_GREEN,"You have changed your vehicle's color.");
}
return 1;
}