05.01.2017, 09:22
(
Последний раз редактировалось B4dSh33p; 12.01.2017 в 17:26.
)
Resolvido
new objectNeon[MAX_PLAYERS];
CMD:neon(playerid)
{
if(!IsPlayerInAnyVehicle(playerid))
return SendClientMessage(playerid, -1, "Vocк nгo estб dentro de um veнculo!");
objectNeon[GetPlayerVehicleID(playerid)] = CreateObject(18648, 0, 0, -1000, 0, 0, 0, 100);
AttachObjectToVehicle(objectNeon[GetPlayerVehicleID(playerid)], GetPlayerVehicleID(playerid), -0.824999, 0.000000, -0.524999, 0.000000, 0.000000, 0.000000);
return true;
}
//Comando para remover o objeto.
CMD:rneon(playerid)
{
if(!IsPlayerInAnyVehicle(playerid))
return SendClientMessage(playerid, -1, "Vocк nгo estб dentro de um veнculo!");
DestroyObject(objectNeon[GetPlayerVehicleID(playerid)]);
return true;
}
//Se o veнculo fфr destruнdo irб remover o objeto.
public OnVehicleDeath(vehicleid, killerid)
{
DestroyObject(objectNeon[vehicleid]);
return true;
}
DestroyObject(objectNeon[GetPlayerVehicleID(playerid)]);
public OnVehicleDeath(vehicleid, killerid)
public OnPlayerExitVehicle(playerid, vehicleid)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnVehicleSpawn(vehicleid)