Hey COM ich wollte fragen wie ich mein supmobil Farbe ändern kann zuzeit spawnt mein supmobil Random aber ich will das es Blau spawnt.
Hier ist das Supcar System ich habe das Randolph schon durch Blue geändert habe aber einen error bekommen
Function SupLabel(playerid)
{
if(supmobil[playerid] != 0)
{
Delete3DTextLabel(suptext[playerid]);
format(stringx, sizeof(stringx), "Supporter Car von %s", MeinName(playerid));
suptext[playerid] = Create3DTextLabel(stringx, COLOR_GOLD, 0.0, 0.0, 0.0, 30.0, 0, 1);
Attach3DTextLabelToVehicle(suptext[playerid], supmobil[playerid], 0.0, 0.0, 0.3);
}
else KillTimer(suplabeltimer[playerid]);
return 1;
}
Function CreateSupCar(playerid, carid) {
new Float:cX, Float:cY, Float:cZ, Float:cZa, rand1, rand2;
GetPlayerPos(playerid, cX, cY, cZ);
GetPlayerFacingAngle(playerid, cZa);
rand1 = random(126);
rand2 = random(126);
supmobil[playerid] = CreateVehicle(carid, cX, cY, cZ, cZa, rand1, rand2, 0);
PutPlayerInVehicle(playerid, supmobil[playerid], 0);
format(stringx, sizeof(stringx), "Supporter Car von %s", MeinName(playerid));
suptext[playerid] = Create3DTextLabel(stringx, COLOR_GOLD, 0.0, 0.0, 0.0, 30.0, 0, 1);
Attach3DTextLabelToVehicle(suptext[playerid], supmobil[playerid], 0.0, 0.0, 0.3);
suplabeltimer[playerid] = SetTimerEx("SupLabel", 10000, 1, "i", playerid);
new engine,lights,alarm,doors,bonnet,boot,objective;
GetVehicleParamsEx(supmobil[playerid],engine,lights,alarm,doors,bonnet,boot,objective);
SetVehicleParamsEx(supmobil[playerid],VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
return 1;