28.08.2012, 09:54
To delete that object after a while.
you need to set up a timer and ofc.. define that object
Example:
you need to set up a timer and ofc.. define that object
Example:
pawn Код:
new Xyz;
CMD:blab(playerid, params[])
{
Xyz = CreateObject(...);
SetTimer("Delete",15000, false);//15000 = 15 seconds.. you can increase it too like 30000 or more...
return 1;
}
forward Delete();
public Delete()
{
DestroyObject(Xyz);
return 1;
}