05.09.2010, 16:24
https://sampwiki.blast.hk/wiki/GetPlayerKeys
pawn Код:
public OnPlayerUpdate(playerid)
{
new Keys,ud,lr;
GetPlayerKeys(playerid,Keys,ud,lr);
if(lr > 0)
{
if(GetPlayerSelState(playerid) > 0)
SetPlayerSelectionID(playerid,GetPlayerSelectionID(playerid)+1);
else
return 1;
}
if(lr < 0)
{
//etc
return 1;
}
return 1;
}