Is this possible - 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: Is this possible (
/showthread.php?tid=581985)
Is this possible -
newbman - 17.07.2015
Can i made attach object to player after 5 second of minutes, the object will automatic been destroy
Re: Is this possible -
ironmen - 17.07.2015
yes,but do you mean 5 seconds or 5 minutes??!?!
Re: Is this possible -
SWAT4 - 17.07.2015
I Guess he Meant 5 seconds of the minute,
Means 5 seconds :P
To people Who didn't understand his Meaning : He wants to attach an object o player, And after 5 seconds it automaticly Destroys,
Re: Is this possible -
Abagail - 17.07.2015
ok
pawn Код:
PlayerObject[playerid] = CreateDynamicObject(19303, 0.0, 0.0, 0.0, 0, 0, 0);
AttachObjectToPlayer(PlayerObject[playerid], playerid, 0.0, 0.0, 0.0);
SetTimerEx("DestroyObject", 5000, false, "d", playerid);
pawn Код:
forward DestroyObject(playerid);
public DestroyObject(playerid)
{
DestroyDynamicObject(PlayerObject[playerid]);
return 1;
}
Just a short example using timers.
Re: Is this possible -
newbman - 17.07.2015
Quote:
Originally Posted by SWAT4
I Guess he Meant 5 seconds of the minute,
Means 5 seconds :P
To people Who didn't understand his Meaning : He wants to attach an object o player, And after 5 seconds it automaticly Destroys,
|
that right that what im trying to say. sorry for my bad english