Need help finding a key.. [unsolved]
#1

I was playing a server before and i found out f you press 1 a menu comes...
What key id would 1 be?

otherwise how can i make it if you press 1 it says Lorenc rules in sendclientmessage?

Reply
#2

Quote:
Originally Posted by ((Lorenc))
I was playing a server before and i found out f you press 1 a menu comes...
What key id would 1 be?

otherwise how can i make it if you press 1 it says Lorenc rules in sendclientmessage?
forum.sa-mp.com. goto scripting resources. You can find keys and such.
Reply
#3

I already searched... Wiki either dosent tell me either the id...

Код:
// Keys
#define KEY_ACTION				(1)
#define KEY_CROUCH				(2)
#define KEY_FIRE				(4)
#define KEY_SPRINT				(8)
#define KEY_SECONDARY_ATTACK	(16)
#define KEY_JUMP				(32)
#define KEY_LOOK_RIGHT			(64)
#define KEY_HANDBRAKE			(128)
#define KEY_LOOK_LEFT			(256)
#define KEY_SUBMISSION			(512)
#define KEY_LOOK_BEHIND			(512)
#define KEY_WALK				(1024)
#define KEY_ANALOG_UP			(2048)
#define KEY_ANALOG_DOWN			(4096)
#define KEY_ANALOG_LEFT			(8192)
#define KEY_ANALOG_RIGHT		(16384)

#define KEY_UP					(-128)
#define KEY_DOWN				(128)
#define KEY_LEFT				(-128)
#define KEY_RIGHT				(128)
Reply
#4

i search another script..
Reply
#5

use search and dont double post, its annoying
Reply
#6

Okay i didnt find it through search mister so dont get your hopes up.

Quote:
Originally Posted by Saurik
use search and dont double post, its annoying
and your annoying to post in my topic with no anwser but an argument.
Reply
#7

Check the wiki and use your brain (as small as it may be).

Individual keys are set by client control, what you're looking for is this.
Reply
#8

Quote:
Originally Posted by Freddo [BINMAN
]
Check the wiki and use your brain (as small as it may be).

Individual keys are set by client control, what you're looking for is this.
okay forgot to search that page on wiki and btw thnaks
Reply
#9

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    new str[35];
    format(str, 35, "ID of the key pressed: %d", newkeys);
    SendClientMessage(playerid, 0xFF0000FF, str);
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)