Whats the mouse button key?
#1

What is the mouse button key? The left click one.


I'm trying to make a speed boost for when a player clicks the left click button.


Reply
#2

Lol, find it yourself.

pawn Код:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
   printf("%d",newkeys);
   return 1;
}
Now go in game and hit left mouse button and check your console.
Reply
#3

Or use SA-MP wiki
Reply
#4

And FYI, the keys aren't constant only what they map to is constant (such as "shoot", not "left click")... Your left click may not work for every player.
Reply
#5

Quote:
Originally Posted by Simon
And FYI, the keys aren't constant only what they map to is constant (such as "shoot", not "left click")... Your left click may not work for every player.
Well theres nothing you can do for that.
Reply
#6

Quote:
Originally Posted by Baked-Banana
Quote:
Originally Posted by Simon
And FYI, the keys aren't constant only what they map to is constant (such as "shoot", not "left click")... Your left click may not work for every player.
Well theres nothing you can do for that.
Yes, was informing the original poster it's technically not possible to get the mouse button key. You can only get the "GTA key" (which are mapped differently between users) rather than the keyboard key/mouse key.
Reply
#7

Quote:
Originally Posted by Simon
Quote:
Originally Posted by Baked-Banana
Quote:
Originally Posted by Simon
And FYI, the keys aren't constant only what they map to is constant (such as "shoot", not "left click")... Your left click may not work for every player.
Well theres nothing you can do for that.
Yes, was informing the original poster it's technically not possible to get the mouse button key. You can only get the "GTA key" (which are mapped differently between users) rather than the keyboard key/mouse key.
So wait your saying, if i make it that the player has to click the left mouse button to get a speed boost, it might not work for everyone?

Whats a way to work around that?
Reply
#8

Quote:
Originally Posted by ruckfules99
Quote:
Originally Posted by Simon
Quote:
Originally Posted by Baked-Banana
Quote:
Originally Posted by Simon
And FYI, the keys aren't constant only what they map to is constant (such as "shoot", not "left click")... Your left click may not work for every player.
Well theres nothing you can do for that.
Yes, was informing the original poster it's technically not possible to get the mouse button key. You can only get the "GTA key" (which are mapped differently between users) rather than the keyboard key/mouse key.
So wait your saying, if i make it that the player has to click the left mouse button to get a speed boost, it might not work for everyone?

Whats a way to work around that?
Quote:
Originally Posted by Baked-Banana
Quote:
Originally Posted by Simon
And FYI, the keys aren't constant only what they map to is constant (such as "shoot", not "left click")... Your left click may not work for every player.
Well theres nothing you can do for that.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)