[AJUDA]Portao Buzina
#5

pawn Код:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
    if(newkeys == 2)
    {
        if(IsPlayerInRangeOfPoint(playerid,10.0,X,Y,Z)) // X Y Z = Coordenadas aonde o portгo fica, ou onde tu quer que a busina funfe
        {
            if(IsPlayerInAnyVehicle(playerid))
            {
                MoveObject(ID, X, Y, Z, 6.0); //ID do objeto X Y Z = coordenadas para mover o objeto
                return 1;
            }
            return true;
        }
        return true;
    }
    return true;
}
Reply


Messages In This Thread
[AJUDA]Portao Buzina - by LuC4z - 09.10.2011, 01:23
Re: [AJUDA]Portao Buzina - by Dolby - 09.10.2011, 01:26
Re: [AJUDA]Portao Buzina - by WLSF - 09.10.2011, 01:27
Re: [AJUDA]Portao Buzina - by ceesar90 - 09.10.2011, 01:28
Re: [AJUDA]Portao Buzina - by Josma_cmd - 09.10.2011, 01:30
Re: [AJUDA]Portao Buzina - by MatriXBorn - 09.10.2011, 17:33
Re: [AJUDA]Portao Buzina - by DreeH - 09.10.2011, 18:01

Forum Jump:


Users browsing this thread: 1 Guest(s)