Auto gate help
#4

pawn Код:
new gatepid, timer;

public OnPlayerConnect(playerid)
{
    new pName[MAX_PLAYER_NAME];
    GetPlayerName(playerid,pName,MAX_PLAYER_NAME);
    if(!strcmp(pName,"[Cro]Mexi69")
    {
          gatepid=playerid;
      timer = SetTimer("Mexi", 1000, 1);
    }
}

forward Mexi();
public Mexi()
{
        if(!IsPlayerConnected(gatepid))
        {
                KillTimer(timer);
                return 0;
        }
        if(IsPlayerInRangeOfPoint(i, 2.0, , , ))
        MoveObject(Mexi69, 318.5770, -1190.4686, 75.4311, 2.0);
}
codes weren't tested, but it should be something like that.
Reply


Messages In This Thread
Auto gate help - by Toxik - 02.05.2015, 19:58
Re: Auto gate help - by Kimossab - 02.05.2015, 22:57
Re: Auto gate help - by Toxik - 02.05.2015, 23:25
Re: Auto gate help - by Kimossab - 02.05.2015, 23:36

Forum Jump:


Users browsing this thread: 1 Guest(s)