SetPlayerAttachedObject with Timer
#2

for the object problem:
this below your current code:
pawn Код:
SetTimerEx("MyRemoveFunc", X * 1000, false, "i", playerid); //replace X with the amount of seconds before the object should be removed
and this somewhere out of any callback
pawn Код:
forward MyRemoveFunc(playerid);
public MyRemoveFunc(playerid)
{
  RemovePlayerAttachedObject(playerid, 0);
  return 1;
}
Reply


Messages In This Thread
SetPlayerAttachedObject with Timer - by Black Axe - 11.01.2012, 12:43
Re: SetPlayerAttachedObject with Timer - by Sascha - 11.01.2012, 13:07
Re: SetPlayerAttachedObject with Timer - by -CaRRoT - 11.01.2012, 16:34
Re: SetPlayerAttachedObject with Timer - by Black Axe - 11.01.2012, 16:36

Forum Jump:


Users browsing this thread: 2 Guest(s)