25.05.2009, 17:24
I made these lines
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 ?
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;
}
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 ?