[Ajuda] OnPlayerWeaponShot
#1

O que tem de errado nesse codigo, quando eu atiro no veado2 ele destroi o veado1?

Quote:

public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, Float:fX, Float:fY, Float:fZ)
{

if(hittype == 3)
{
if(IsValidObject(hitid) == veado1[playerid])
{
DestroyObject(veado1[playerid]);
}

if(IsValidObject(hitid) == veado2[playerid])
{
DestroyObject(veado2[playerid]);
}
}
return 1;
}

Reply


Messages In This Thread
OnPlayerWeaponShot - by OtimoJogo - 03.09.2016, 19:06
Re: OnPlayerWeaponShot - by Andinho - 03.09.2016, 19:29
Re: OnPlayerWeaponShot - by OtimoJogo - 03.09.2016, 19:32
Re: OnPlayerWeaponShot - by Whoo - 03.09.2016, 19:42
Re: OnPlayerWeaponShot - by OtimoJogo - 03.09.2016, 20:15
Re: OnPlayerWeaponShot - by OtimoJogo - 04.09.2016, 14:29

Forum Jump:


Users browsing this thread: 1 Guest(s)