[Ajuda] Sirenes ao iniciar o GM
#2

https://sampwiki.blast.hk/wiki/AttachObjectToVehicle

PHP код:
new sirenteste CreateObject11701,0,0,0,0,0,0,80 ); // sirene 
PHP код:
AttachObjectToVehicle(sirentesteID DO VEICULO0.0000000.0000000.8299990.0000000.0000000.000000); 
=

PHP код:
AttachObjectToVehicle(sirentesteCopCarros[159], 0.0000000.0000000.8299990.0000000.0000000.000000); 
OnVehicleDeath
PHP код:
DestroyDynamicObjectCopCarros[159], sirenteste ); 
Terб que criar uma sirene para cada carro.
Exemplo:
PHP код:
new sirenes10 
PHP код:
new sirenes] = CreateObject11701,0,0,0,0,0,0,80 ); // sirene 1
new sirenes] = CreateObject11701,0,0,0,0,0,0,80 ); // sirene 2
new sirenes] = CreateObject11701,0,0,0,0,0,0,80 ); // sirene 3 etc.. 
PHP код:
AttachObjectToVehicle(sirenes], CopCarros[159], 0.0000000.0000000.8299990.0000000.0000000.000000);  
AttachObjectToVehicle(sirenes], CopCarros[160], 0.0000000.0000000.8299990.0000000.0000000.000000);  
AttachObjectToVehicle(sirenes], CopCarros[161], 0.0000000.0000000.8299990.0000000.0000000.000000);  // Etc... 
OnVehicleDeath
PHP код:
DestroyDynamicObjectCopCarros[159], sirenes] );
DestroyDynamicObjectCopCarros[160], sirenes] );
DestroyDynamicObjectCopCarros[161], sirenes] ); 
Reply


Messages In This Thread
Sirenes ao iniciar o GM - by SonicFreeStyle - 24.07.2015, 19:20
Re: Sirenes ao iniciar o GM - by Welconha - 25.07.2015, 01:49

Forum Jump:


Users browsing this thread: 2 Guest(s)