![]() |
|
[Pawn] Keybinds - Printable Version +- open.mp forum (https://forum.open.mp) +-- Forum: SA-MP (https://forum.open.mp/forumdisplay.php?fid=3) +--- Forum: Pawn Scripting (https://forum.open.mp/forumdisplay.php?fid=10) +--- Thread: [Pawn] Keybinds (/showthread.php?tid=2179) |
Keybinds - GeorgeXCarl - 2021-07-17 is there any way i can detect other keybinds for?example Code: public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
? ? ?if((newkeys & KEY_P) || (newkeys & KEY_Z))
? ? ?{
? ? ? ? ? // which is detecting the key "P" or key "Z"
? ? ?}
? ? ?return 1;
}RE: Keybinds - Kwarde - 2021-07-17 No 5char |