Need help which move object which time and money
#5

pawn Код:
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;
        }
and u need to make the callbacks:

pawn Код:
public CloseGate()
{
MoveObject(playerid, x, y, z, SPEED);
return 1;
}
when u will finish with this add at the top of ur script
pawn Код:
forward CloseGate();
Good luck...
Reply


Messages In This Thread
Need help which move object which time and money - by doreto - 12.11.2010, 12:17
Re: Need help which move object which time and money - by HrvojeCro - 12.11.2010, 12:22
Re: Need help which move object which time and money - by doreto - 12.11.2010, 12:40
Re: Need help which move object which time and money - by doreto - 12.11.2010, 13:20
Re: Need help which move object which time and money - by Rafa - 12.11.2010, 13:25
Re: Need help which move object which time and money - by doreto - 12.11.2010, 13:28

Forum Jump:


Users browsing this thread: 1 Guest(s)