how to make like if you press "F" or enter then enters building?
#1

how to make like if you press "F" or enter then enters building?

i want that if coords -2161.2886,-2384.8337,30.8949 and you press F OR ENTER BUTTON then you will be teleported to building
how can i do like that?
Reply
#2

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_SECONDARY_ATTACK)
    {
        if(IsPlayerInRangeOfPoint(playerid, 1.0, -2161.2886,-2384.8337,30.8949))
        {
          // teleport here
        }
    }
    return 1;
}
Reply
#3

Exactly still need help?
Reply
#4

No Thnx i got working
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)