07.11.2013, 21:18
PHP код:
CreateVehicle(560, -1522.3668, 891.5472, 6.8458, -3.7360, -1, -1, 100);
CreateVehicle(560, -1522.3668, 891.5472, 6.8458, -3.7360, -1, -1, 100);
CreateVehicle(560, -1522.3668, 891.5472, 6.8458, -3.7360, COLOR1, COLOR2, 100);
#define COLOR_ERROR 0x808080FF
#define SCM SendClientMessage
CMD:spray(playerid,params[])
{
new color1,color2;
if(sscanf(params,"dd",color1,color2)) return SCM(playerid,COLOR_ERROR,"Usage: /spray [color 1] [color 2]");
new vehicleid = GetPlayerVehicleID(playerid);
ChangeVehicleColor(vehicleid, color1,color2);
return 1;
}