getplayerkeys
#4

An Example:
pawn Код:
public OnPlayerUpdate(playerid)
{
    new Keys,ud,lr;
    GetPlayerKeys(playerid,Keys,ud,lr);
 
    if(ud == KEY_UP) SendClientMessage(playerid, -1, "UP");
    else if(ud == KEY_DOWN) SendClientMessage(playerid, -1, "DOWN");
 
    if(lr == KEY_LEFT) SendClientMessage(playerid, -1, "LEFT");
    else if(lr == KEY_RIGHT) SendClientMessage(playerid, -1, "RIGHT");
 
    return 1;
}
Taken from the SA-MP Wiki.^
Reply


Messages In This Thread
getplayerkeys - by iBots - 15.05.2014, 11:57
Re: getplayerkeys - by Parallex - 15.05.2014, 12:03
Re: getplayerkeys - by iBots - 15.05.2014, 12:05
Re: getplayerkeys - by Parallex - 15.05.2014, 12:06
Re: getplayerkeys - by iBots - 15.05.2014, 12:14

Forum Jump:


Users browsing this thread: 2 Guest(s)