Keys - 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)
+--- Thread: Keys (
/showthread.php?tid=613751)
Keys -
Micko123 - 31.07.2016
Can i somehow detect if player presses key R??
Re: Keys -
Eymeric69 - 31.07.2016
https://sampwiki.blast.hk/wiki/OnPlayerKeyStateChange
Re: Keys -
Micko123 - 31.07.2016
Rly

-_-. I am asking how to detect key that is not in SAMP. Not how to make this
PHP код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
if (PRESSED(KEY_FIRE))
{
if (IsPlayerInAnyVehicle(playerid))
{
AddVehicleComponent(GetPlayerVehicleID(playerid), 1010);
}
}
return 1;
}
Re: Keys -
FreAkeD - 31.07.2016
Don't think its possible.
https://sampwiki.blast.hk/wiki/Keys
Re: Keys -
Rockefeller - 31.07.2016
Its possible , use Sasino97 plugin :
https://sampforum.blast.hk/showthread.php?tid=268671
Re: Keys -
Konstantinos - 31.07.2016
Without forcing people to download file(s), it is not possible.
Quote:
Originally Posted by Rockefeller
|
This thread was locked for a reason and its name is misleading. There's a warning with big red letters at the top of the first post:
Quote:
This is a SERVER-ONLY key detection plugin. it detects only if the keys are pressed on the SERVER and not clients. This will NOT detect keypresses from people's games.
|
Re: Keys - WhiteGhost - 31.07.2016
Wait wouldn't it be possible if u sendadminmessage?
Re: Keys -
Luicy. - 31.07.2016
Quote:
Originally Posted by WhiteGhost
Wait wouldn't it be possible if u sendadminmessage?
|
I got a question for you,
What the hell do you smoke?
Re: Keys - WhiteGhost - 31.07.2016
Quote:
Originally Posted by Meller
I got a question for you,
What the hell do you smoke?

|
I just ask a question,a yes or no with of been easier dont ya think?