Is it possible to create an object when you do a command?
#2

pawn Код:
new TemporaryID = CreateDynamicObject(3066,-69.5999985,-1124.6999512,1.1000000,0.0000000,0.0000000,65.5000000);
SetTimerEx("RemoveObject",30*1000,false,"d",TemporaryID);

Somewhere

pawn Код:
forward RemoveObject(objectid);
public RemoveObject(objectid)
{

    if(IsValidDynamicObject(objectid))
        DestroyDynamicObject(objectid);

    return 1;
}
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)