Enetring houses
#1

Hello , how i can change that if i want to enter 24/7 or lspd i need to press F

IM BAD ENGLISH
Reply
#2

Check out OnPlayerKeyStateChange()
Reply
#3

Take this and enter your system / codes:

It checks if you pressed F and you are not in a car, then it works.
pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(!IsPlayerInAnyVehicle(playerid) && newkeys & KEY_SECONDARY_ATTACK)
    {
        /* Your house system code should be here */
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)