11.02.2013, 14:07
Example :
And the callback:
pawn Код:
new obj; // at the top
pawn Код:
SetTimerEx("MovingThisObject", 1000, false, "i", playerid);
// 1000 is 1 second, choose what you want , Note that the move object will happen 1 second or whatever you typed in seconds.
pawn Код:
// Under OnGameModeInIt
obj = CreateObject(modelid, Float:X, Float:Y, Float:Z, Float:rX, Float:rY, Float:rZ); // Creates The Object
pawn Код:
forward MovingThisObject(playerid);
public MovingThisObject(playerid)
{
MoveObject(obj, Float:X, Float:Y, Float:Z); // Moves the object to the XYZ you typed.
return 1;
}