Moving Gate[+rep]
#4

pawn Код:
new Gate;
new GateStatus;

public OnGameModeInit()
{
    Gate = CreateObject(980, 1067.08704, 1359.38843, 12.29745,   0.00000, 0.00000, 0.00000);
    return 1;
}

CMD:gate(playerid, params[])
{
    new playername[24];
    if( strfind( playername, "TAG", true) == -1 )
    {
        SendClientMessage( playerid, 0xFFFFFFFF, "...................");
        return 1;
    }
    if(IsPlayerInRangeOfPoint(playerid, 8.0, 1067.08704, 1359.38843, 12.29745))
    {
        if(GateStatus == 0)
        {
            MoveObject(Gate, 1067.08704, 1359.38843, 6.80000, 2.00);
            GateStatus = 1;
        }
        else
        {
            MoveObject(Gate, 1067.08704, 1359.38843, 12.29745, 2.00);
            GateStatus = 0;
        }
    }
    return 1;
}
Without strfind it works perfect
Reply


Messages In This Thread
Moving Gate[+rep] - by KickInTheMick - 19.11.2013, 06:54
Re: Moving Gate[+rep] - by Jankingston - 19.11.2013, 06:58
Re: Moving Gate[+rep] - by Biesmen - 19.11.2013, 06:59
Re: Moving Gate[+rep] - by KickInTheMick - 19.11.2013, 07:19
Re: Moving Gate[+rep] - by Biesmen - 19.11.2013, 07:26
Re: Moving Gate[+rep] - by KickInTheMick - 19.11.2013, 07:48

Forum Jump:


Users browsing this thread: 1 Guest(s)