How to enter a building using ALT?
#1

Hello!

I'm using GTA:RP, and in there you will enter building if you just go into the icon. But i want to remove it, and replace with ALT. Please help. I will give free host for month, if you help.. .
Reply
#2

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_WALK)
    {
        if(IsPlayerInRangeOfPoint(playerid,2,-2026.55,-102.06,35.16)) //Enter
        {
            SetPlayerPos(playerid,x,y,z);
            SetPlayerInterior(playerid,Interior);
        }
        if(IsPlayerInRangeOfPoint(playerid,2,x,y,z)) //Exit
        {
            SetPlayerPos(playerid,x,y,z);
            SetPlayerInterior(playerid,0);
        }
    }
    return true;
}
Reply
#3

Nevermind
Reply
#4

Use this:

https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)