21.04.2017, 00:43
PHP код:
CMD:criarveiculo(playerid, params[])
{
new Float:x, Float:y, Float:z, Float:a ,vehid, cor1,cor2;
if(pAdmin[playerid] > 0) return 1;
if(sscanf(params, "ddd", vehid, cor1, cor2)) return 1;
GetPlayerPos(playerid, x, y, z);
GetPlayerFacingAngle(playerid, a);
vehid = CreateVehicle(veiculo, x, y, z, a, cor1, cor2, -1);
LinkVehicleToInterior(vehid, GetPlayerInterior(playerid));
PutPlayerInVehicle(playerid, vehid, 0);
PlayerPlaySound(playerid, 1133, 0.0, 0.0, 0.0);
format(string, sizeof(string), "Veнculo %s criado com sucesso! {FF1E1E}(APУS USAR, NГO ESQUEЗA DE EXCLUIR! - /dv)", vNome[GetVehicleModel(vehid) - 400]);
SendClientMessage(playerid, 0x1E90FFAA, string);
return 1;
}