25.05.2014, 09:14
When i shoot with any weapon i want the object to go off but it dosen't it just explodes where ever i shoot with any weapon, thanks for your time!
pawn Код:
new
gTutrleObject[ MAX_PLAYERS ];
CMD:gyn(playerid, params[])
{
gTutrleObject[ playerid ] = SetPlayerAttachedObject(playerid, 4, 18912, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
return true;
}
public OnPlayerWeaponShot(playerid, weaponid, hittype, hitid, fX, fY, fZ)
{
MovePlayerObject(playerid, gTutrleObject[ playerid ], fX, fY, fZ, 10);
CreateExplosion(fX, fY, fZ, 12, 10.0);
gTutrleObject[ playerid ] = SetPlayerAttachedObject(playerid, 4, 18912, 2, 0.078534, 0.041857, -0.001727, 268.970458, 1.533374, 269.223754);
return true;
}