11.06.2011, 13:24
when i click left or right its ok, if up or down, no message gets sent;
pawn Код:
static keys, ud, lr;
GetPlayerKeys(playerid, keys, ud, lr);
if(lr > 0)
{
PlayerInfo[playerid][pInvisibilityTick] = GetTickCount();
SendClientMessage(playerid, -1, "Pressing Right");
}
else if(lr < 0)
{
SendClientMessage(playerid, -1, "Pressing Left");
}
if(ud < 0)
{
SendClientMessage(playerid, -1, "Pressing Up");
}
else if(ud > 0)
{
SendClientMessage(playerid, -1, "Pressing Down");
}