Is this possible
#1

Can i made attach object to player after 5 second of minutes, the object will automatic been destroy
Reply
#2

yes,but do you mean 5 seconds or 5 minutes??!?!
Reply
#3

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,
Reply
#4

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.
Reply
#5

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
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)