KeyBoard Script Help -
[ProX]BlueFire - 13.03.2011
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
Re: KeyBoard Script Help -
Medal Of Honor team - 13.03.2011
please explain it properly about what you want?
Re: KeyBoard Script Help -
Meinstad - 13.03.2011
Please explain better And Don't Type Like These! It's So Annoying! Don't You See ?
Re: KeyBoard Script Help -
[ProX]BlueFire - 13.03.2011
i want to make an object move...
like when u click "W" or the "arrow Up"
The Object Will Move Up(z +10)
Re: KeyBoard Script Help -
AK47317 - 15.03.2011
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
AW: KeyBoard Script Help -
Nero_3D - 15.03.2011
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;
Re: KeyBoard Script Help -
[ProX]BlueFire - 18.03.2011
link?
AW: Re: KeyBoard Script Help -
Nero_3D - 18.03.2011
Quote:
Originally Posted by [ProX]BlueFire
link?
|
Doesnt it appear as blue for you ?
Quote:
Originally Posted by AK47317
|
Re: KeyBoard Script Help -
[ProX]BlueFire - 19.03.2011
lol nope xD
but now it apear in ur last reply
Re: KeyBoard Script Help -
[ProX]BlueFire - 19.03.2011
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~