14.10.2016, 14:39
(
Последний раз редактировалось Whoo; 14.10.2016 в 16:11.
)
@edit se ReturmVehicleModelName for uma variavel que armazena os nomes deves utilizar assim,
PHP код:
ReturnVehicleModelName[CarData[vehicleid][carModel] - 400];
PHP код:
CMD:verdono(playerid, params[])
{
static
vehicleid, string[128];
if(GetFactionType(playerid) != FACTION_POLICE)
return SendErrorMessage(playerid, "Vocк deve ser um policial.");
if(sscanf(params, "d", vehicleid))
return SendSyntaxMessage(playerid, "/verdono [vehicleid]");
if(!IsValidVehicle(vehicleid) || Car_GetID(vehicleid) == -1)
return SendErrorMessage(playerid, "Vocк especificou um ID invбlido.");
SendClientMessage(userid, COLOR_GREEN, "--------------------------------------------------------------------");
SendClientMessage(userid, COLOR_GREEN, " SECRETARIA DE SEGURANЗA DO ESTADO DE MINAS GERAIS");
SendClientMessage(userid, COLOR_GREEN, "");
format(string,sizeof(string), "{33CC33}Dono do veнculo: {FFFFFF}%s.", CarData[vehicleid][carOwner]);
SendClientMessage(userid,0x33CC33AA, string);
format(string,sizeof(string), "{33CC33}Modelo do veнculo: {FFFFFF}%s.", ReturnVehicleModelName(CarData[vehicleid][carModel]);
SendClientMessage(userid,0x33CC33AA, string);
SendClientMessage(userid, 0x33CC33AA, "--------------------------------------------------------------------");
SendNearbyMessage(userid, 30.0, COLOR_PURPLE, "** %s checa a placa de um veнculo.", ReturnName(playerid, 0));
return 1;
}