24.07.2015, 19:45
Quote:
mas isso vai add o objeto em cima do veiculo tambйm ou sу vai adicionar o efeito da sirene?
|
para adicionar o objeto da sirene й fбcil
PHP код:
// Topo do GM
new Sirene[MAX_PLAYERS];
// Adicionar sirene
CMD:sirene(playerid, params[])
{
Sirene[playerid] = CreateObject(19419,0.0,0.0,0.0,0.0000000,0.0000000,0.0000000);
AttachObjectToVehicle(Sirene[playerid], GetPlayerVehicleID(playerid), 0.009999, -0.019999, 0.944999, 0.000000, 0.000000, 0.000000);
return 1;
}
// Tirar sirene
CMD:tirarsirene(playerid, params[])
{
DestroyObject(Sirene[playerid]);
return 1;
}