KeyBoard Script Help
#1

Can Some1 Tell Me How I Get The Arrows Of:
w,s,a,d,Arrow Up,Arrow Down, Arrow Left, Arrow Right.

I Found This: KEY_UP , KEY_DOWN , KEY_LEFT , KEY_RIGHT
But It Doesnt Work...

Can Som1 Tell Me How It Call+make an Example...?

P.S.
How I Enable/Disable Cmds?
i mean like you using The Cmd /heal and this cmd will disable in dm zones how i do thet?


Big Thx For Helpers
Reply
#2

please explain it properly about what you want?
Reply
#3

Please explain better And Don't Type Like These! It's So Annoying! Don't You See ?
Reply
#4

i want to make an object move...
like when u click "W" or the "arrow Up"
The Object Will Move Up(z +10)
Reply
#5

wow this is weirdo script... but nvm lol (idk whats the code to make that too xD) try use click here and then scroll down
Reply
#6

moving the object with keys isnt necessary since 0.3
You can get the front vector * distance and update the position of the object each 100 ms

Moving something with keys is only needed with things which arent in the world like textdraws, in my opinion

But if you are still interested

Click the link AK47317 provided and scroll up to the GetPlayerKeys function

You will notice the parameter updown and leftright, example included

Quote:
Originally Posted by [ProX]BlueFire
Посмотреть сообщение
P.S.
How I Enable/Disable Cmds?
i mean like you using The Cmd /heal and this cmd will disable in dm zones how i do thet?
pawn Код:
//somewhere above
new
    bool: IsPlayerInDM[MAX_PLAYERS];
pawn Код:
//InYour deathmatch command
IsPlayerInDM[playerid] = true;
pawn Код:
//In your heal command
if(IsPlayerInDM[playerid] == true) {
    return 0;
}
pawn Код:
//If the player leave the deathmatch, maybe OnPlayerDeath
IsPlayerInDM[playerid] = false;
Reply
#7

link?
Reply
#8

Quote:
Originally Posted by [ProX]BlueFire
Посмотреть сообщение
link?
Doesnt it appear as blue for you ?

Quote:
Originally Posted by AK47317
Посмотреть сообщение
Reply
#9

lol nope xD
but now it apear in ur last reply
Reply
#10

sorry for the dueble posting -.-"


i used this and nothing was change...
Код:
Up/Down-Keys
DefineValueGametext-Key on FootGametext-Key in Vehicle
KEY_UP-128~k~~GO_FORWARD~~k~~VEHICLE_STEERUP~
KEY_DOWN128~k~~GO_BACK~~k~~VEHICLE_STEERDOWN~
Left/Right-Keys
DefineValueGametext-Key on FootGametext-Key in Vehicle
KEY_LEFT-128~k~~GO_LEFT~~k~~VEHICLE_STEERLEFT~
KEY_RIGHT128~k~~GO_RIGHT~~k~~VEHICLE_STEERRIGHT~
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)