- Ionutt
- Mesaje : 5
Data de inscriere : 19/12/2016
Propunere
23/12/2016, 10:35
Cu aceasta comanda puteti schimba numarul la masina
Foloseste asta:
if(dialogid==DIALOG_PLATE)
{
if(response)
{
if(strlen(inputtext) > 32) return SendClientMessage(playerid, -1, "Prea multe caractere"); // Schimbi tu 32 cu Numarul tau de Caractere
Delete3DTextLabel(TextUpCar[vehid]);
new Float:XX,Float:YY,Float:ZZ,Float:AA;
new Float:CarHP, Float:OldCarHP;
new panels,doors,lights,tires;
GetVehicleHealth(vehid, CarHP);
GetVehicleDamageStatus(vehid,panels,doors,lights,t ires);
OldCarHP = CarHP;
format(CarInfo[vehid][cLicense], 32 ,"%s", inputtext);
TextUpCar[vehid] = Create3DTextLabel(inputtext, 0x33AAFFFF, 0.0, 0.0, 0.0, 25, 0, 1);
Attach3DTextLabelToVehicle(TextUpCar[vehid], vehid, 0.0, 0.0, 0.1);
GetVehiclePos(vehid,XX,YY,ZZ);
GetVehicleZAngle(vehid, AA);
SetVehicleToRespawn(vehid);
SetVehiclePos(vehid,XX,YY,ZZ);
SetVehicleZAngle(vehid, AA);
PutPlayerInVehicle(playerid,vehid,0);
SetVehicleHealth(vehid, OldCarHP);
UpdateVehicleDamageStatus(vehid,panels,doors,light s,tires);
SendClientMessage(playerid, COLOR_LIGHTGREEN,"* Ti-ai reinoit numarul de inmatriculare !");
format(string, sizeof(string), "Plate: {FFFFFF}%s", CarInfo[vehid][cLicense]);
SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
OnCarUpdate(); SavePlayerData(playerid);
}
return 1;
}
Foloseste asta:
if(dialogid==DIALOG_PLATE)
{
if(response)
{
if(strlen(inputtext) > 32) return SendClientMessage(playerid, -1, "Prea multe caractere"); // Schimbi tu 32 cu Numarul tau de Caractere
Delete3DTextLabel(TextUpCar[vehid]);
new Float:XX,Float:YY,Float:ZZ,Float:AA;
new Float:CarHP, Float:OldCarHP;
new panels,doors,lights,tires;
GetVehicleHealth(vehid, CarHP);
GetVehicleDamageStatus(vehid,panels,doors,lights,t ires);
OldCarHP = CarHP;
format(CarInfo[vehid][cLicense], 32 ,"%s", inputtext);
TextUpCar[vehid] = Create3DTextLabel(inputtext, 0x33AAFFFF, 0.0, 0.0, 0.0, 25, 0, 1);
Attach3DTextLabelToVehicle(TextUpCar[vehid], vehid, 0.0, 0.0, 0.1);
GetVehiclePos(vehid,XX,YY,ZZ);
GetVehicleZAngle(vehid, AA);
SetVehicleToRespawn(vehid);
SetVehiclePos(vehid,XX,YY,ZZ);
SetVehicleZAngle(vehid, AA);
PutPlayerInVehicle(playerid,vehid,0);
SetVehicleHealth(vehid, OldCarHP);
UpdateVehicleDamageStatus(vehid,panels,doors,light s,tires);
SendClientMessage(playerid, COLOR_LIGHTGREEN,"* Ti-ai reinoit numarul de inmatriculare !");
format(string, sizeof(string), "Plate: {FFFFFF}%s", CarInfo[vehid][cLicense]);
SendClientMessage(playerid, COLOR_LIGHTGREEN, string);
OnCarUpdate(); SavePlayerData(playerid);
}
return 1;
}
Permisiunile acestui forum:
Nu puteti raspunde la subiectele acestui forum