Objects respawn help
#1

Well is it possible to make a command like /robjects (respawn objects) where it gets destroy and created again without restarting server?
Reply
#2

pawn Код:
new Float:Pos[6];
GetObjectPos(objectid,Pos[0],Pos[1],Pos[2]);
GetObjectPos(objectid,Pos[3],Pos[4],Pos[5]);
DestroyObject(objectid)
CreateObject(modelid,Pos[0],Pos[1],Pos[2],Pos[3],Pos[4],Pos[5],300);
AFAIK there's no GetObjectModel fucntion. So I guess you have to make your own with variable.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)