Automatic door
#8

Quote:
Originally Posted by Berlovan
Посмотреть сообщение
Thats how to make a cmd in OnPlayerCommandText not a pulic funtion for what i need

i have this, but it dioesnt work nbc of errors
pawn Код:
public PlayerToPoint(Float:radi, playerid, Float:x, Float:y, Float:z)
{
    if(IsPlayerConnected(playerid))
    {
        new Float:oldposx, Float:oldposy, Float:oldposz;
        new Float:tempposx, Float:tempposy, Float:tempposz;
        GetPlayerPos(playerid, oldposx, oldposy, oldposz);
        tempposx = (oldposx -x);
        tempposy = (oldposy -y);
        tempposz = (oldposz -z);
        if (((tempposx < radi) && (tempposx > -radi)) && ((tempposy < radi) && (tempposy > -radi)) && ((tempposz < radi) && (tempposz > -radi)))
        {
            return 1;
        }
    }
    if(PlayerToPoint(playerid, X, Y, Z))
    {
        MoveObject (open,-702.41857910156, 437.17742919922, 18.92423248291, 1.0);
        SetTimer("doorclose", 3000, false)
    }
    return 0;
}
Reply


Messages In This Thread
Automatic door - by cruising - 18.06.2011, 14:26
Re: Automatic door - by Kayaque - 18.06.2011, 17:29
Re: Automatic door - by cruising - 18.06.2011, 20:48
Re: Automatic door - by sleepysnowflake - 18.06.2011, 20:50
Re: Automatic door - by Retardedwolf - 18.06.2011, 20:53
Re: Automatic door - by cruising - 18.06.2011, 20:55
Re: Automatic door - by sleepysnowflake - 18.06.2011, 21:00
Re: Automatic door - by cruising - 18.06.2011, 21:05
Re: Automatic door - by sleepysnowflake - 18.06.2011, 21:09
Re: Automatic door - by cruising - 18.06.2011, 21:14

Forum Jump:


Users browsing this thread: 2 Guest(s)