Help me with the object moved - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Help me with the object moved (
/showthread.php?tid=605679)
Help me with the object moved -
Kenxxx - 23.04.2016
pawn Код:
for(new i;i<MAX_PLAYERS;i++) // Loop through connected players
{
if(GetPVarInt(i, "EventToken") >= 1)
{
if(CarShooting[i] == 1)
{
if(objectid == gRocketObj[i]) // If this object is one of those player objects
{
new
Float:x,
Float:y,
Float:z;
GetObjectPos(gRocketObj[i], x, y, z); // Get the position of the object
CreateExplosion(x, y, z, 11, 3.0); // Create an explosion at this position
DestroyObject(gRocketObj[i]); // Destroy the object
FireShot[i] = 0;
}
}
}
}
Can anyone give me the reason why this rocket cant be exploded ?
Its just been shot and then get stuck. Its although didnt disappear
Re: Help me with the object moved -
introzen - 23.04.2016
Is this a timer or what?