OnplayerKey
#1

How do I activate a command if the player is in range of point and pressed the right key?
im trying this

pawn Code:
if (newkeys == KEY_LOOK_BEHIND)
   {
        if IsPlayerInRangeOfPoint(playerid, 2030.6146,1896.3336,12.1973)
                {
        SendClientMessage(playerid, COLOR_BLUE, "TEST COMPLETE");
        }
        else
        {
            SendClientMessage(playerid,COLOR_RED, "error");
        }
            return 1;
       }
idk what to do
Reply


Messages In This Thread
OnplayerKey - by Jack- - 13.07.2011, 18:52
Re: OnplayerKey - by Famalamalam - 13.07.2011, 19:17
Re: OnplayerKey - by Jack- - 13.07.2011, 19:23
Re: OnplayerKey - by [MG]Dimi - 13.07.2011, 19:28

Forum Jump:


Users browsing this thread: 2 Guest(s)