12.11.2010, 12:17
I need help how to make move object which time and money pls help me
if(strcmp(cmdtext, "/open", true) == 0)
{
if(IsPlayerInRangeOfPoint(playerid, range, x, y, z)) return SendClientMessage(playerid,RED,"You are not near the gate." );
{
MoveObject(gate, X, Y, Z, SPEED);
SetTimer("CloseGate",5000,false);// here is the closing gate she will close in 5 sec u can change that and set it to what u want u can change and that "false" and make it in "true" if u want to repeat the opening and closing of the gate.
return 1;
}
public CloseGate()
{
MoveObject(playerid, x, y, z, SPEED);
return 1;
}
forward CloseGate();