Whats the mouse button key? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Whats the mouse button key? (
/showthread.php?tid=143049)
Whats the mouse button key? -
ruckfules99 - 20.04.2010
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.
Re: Whats the mouse button key? -
Backwardsman97 - 20.04.2010
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.
Re: Whats the mouse button key? -
GTAguillaume - 21.04.2010
Or use SA-MP wiki
Re: Whats the mouse button key? -
Simon - 21.04.2010
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.
Re: Whats the mouse button key? -
Backwardsman97 - 21.04.2010
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.
Re: Whats the mouse button key? -
Simon - 21.04.2010
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.
Re: Whats the mouse button key? -
ruckfules99 - 21.04.2010
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?
Re: Whats the mouse button key? -
Backwardsman97 - 21.04.2010
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.
|