PlayerKeysStill dont work
#1

I made these lines
pawn Код:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
new keys, alt, alt1;
{
    if(IsPlayerInAnyVehicle(playerid))
    GetPlayerKeys(playerid, keys, alt, alt1);
    }
    if(alt == KEY_FIRE)  // the left alt key this time, or the mouse left button, the nitro button
    SendClientMessage(playerid, 0xFF0000AA, "Notro is not allowed");
    RemovePlayerFromVehicle(playerid);
    return 1;
}
the point is ... it compiles with NO ERRORS ...
but when I enter a car ... ir removes me from car even if i press "w" or "s" or anything ...
...
but I want it only to detect "the left alt button" or "left mouse button" ...
...
any help/suggestions ?
Reply


Messages In This Thread
PlayerKeysStill dont work - by Divine - 25.05.2009, 17:24
Re: PlayerKeysStill dont work - by Weirdosport - 25.05.2009, 18:00
Re: PlayerKeysStill dont work - by Divine - 25.05.2009, 18:54

Forum Jump:


Users browsing this thread: 4 Guest(s)