Creating a gate
#6

OMG try classical method..

pawn Код:
new gate;
OnGameModeInit

pawn Код:
gate= CreateObject(...);
OnPlayerCommandText

pawn Код:
if(strcmp(cmd, "/opengate", true) == 0)
    {
        if(PlayerToPoint(5.0, playerid, Float:X, Float:Y, Float:Z))
        {
            MoveObject(gate, Float:X, Float:Y, Float:Z, TIME, 0, 0, 0);
            SetTimer("GateClose", 10000, 0);
            return 1;
        }
    }
pawn Код:
forward GateClose();
public GateClose()
{
    MoveObject(gate, Float:X, Float:Y, Float:Z, TIME, Float:rX, Float:rY, Float:rZ);
    return 1;
}
Reply


Messages In This Thread
Creating a gate - by Stm - 03.09.2012, 18:32
Re: Creating a gate - by detter - 03.09.2012, 18:41
Re: Creating a gate - by Stm - 03.09.2012, 19:02
Re: Creating a gate - by detter - 03.09.2012, 19:16
Re: Creating a gate - by Stm - 03.09.2012, 19:24
Re: Creating a gate - by rBcollo - 03.09.2012, 19:25
Re: Creating a gate - by Stm - 03.09.2012, 19:56
Re: Creating a gate - by detter - 03.09.2012, 19:58
Re: Creating a gate - by Stm - 03.09.2012, 20:02

Forum Jump:


Users browsing this thread: 3 Guest(s)