[Ajuda] Ao acertar tiro num veiculo
#1

Como fazer pra fazer uma condicional de qnd o player acerta tiro num veiculo?

callback tiro nosveiculos {
if(cop[caraqatirou] && cop[caraqtomoutiro] ){
vc atirou num carro de um aliado e perdeu 100 de hp
}

}
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=187259 veja este post...

tambйm tem o OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
BULLET_HIT_TYPE_VEHICLE й == hittype.

nгo sei se funciona desse jeito sу testando...
Reply
#3

Destruir um veнculo com ou sem ninguйm dentro

PHP код:
public OnPlayerWeaponShotplayeridweaponidhittypehitidFloat:fXFloat:fYFloat:fZ ) {
     if(
hittype BULLET_HIT_TYPE_VEHICLE) {
         
SetVehicleHealth(hitid7); // ele irб comeзar a pegar FOGO.
     
}
     return 
true;

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)