Hotkeys IN-Game
#2

Several different options here. I'll give you a quick example though...

pawn Code:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_SECONDARY_ATTACK)
    {
        if(IsPlayerInRangeOfPoint(playerid, 7.0, X, Y, Z))
        {
            SetPlayerPos(playerid, X, Y, Z);
            SetPlayerInterior(playerid, INTERIOR);
        }
        else if(IsPlayerInRangeOfPoint(playerid, 7.0, X, Y, Z))
        {
            SetPlayerPos(playerid, X, Y, Z);
            SetPlayerInterior(playerid, INTERIOR);
        }
    }
    return 1;
}
Reply


Messages In This Thread
Hotkeys IN-Game - by Vinninho - 07.02.2013, 17:51
Re: Hotkeys IN-Game - by Scenario - 07.02.2013, 17:57
Re: Hotkeys IN-Game - by Vinninho - 07.02.2013, 18:12
Re: Hotkeys IN-Game - by Scrillex - 07.02.2013, 18:14
Re: Hotkeys IN-Game - by Vinninho - 07.02.2013, 18:34
Re: Hotkeys IN-Game - by Scenario - 07.02.2013, 18:39
Re: Hotkeys IN-Game - by Vinninho - 07.02.2013, 18:41
Re: Hotkeys IN-Game - by Scenario - 07.02.2013, 18:45
Re: Hotkeys IN-Game - by Vinninho - 07.02.2013, 18:58
Re: Hotkeys IN-Game - by Vinninho - 07.02.2013, 19:20

Forum Jump:


Users browsing this thread: 1 Guest(s)