Posts: 807
Threads: 62
Joined: Dec 2014
Reputation:
0
Hey there,
I just wanted to ask if it is possible to call a key for example I have LALT button flip the car if the player will type /flip for example I want to call LALT button so it will flip the car (Just an example)
Thanks for reading
Posts: 1,266
Threads: 6
Joined: Oct 2014
11.10.2015, 11:31
(
Последний раз редактировалось jlalt; 11.10.2015 в 15:35.
)
make the result / response of the command and key on function example :
PHP код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {
if(newkeys & KEY_ACTION){
hiall();
return 1;
}
return 1;
}
CMD:hiall(playerid,params[]) {
hiall();
#pragma unused params
return 1;
}
hiall() {
SendClientMessageToAll(-1, "HI ALL");
return 1;
}
Posts: 807
Threads: 62
Joined: Dec 2014
Reputation:
0
You still can't understand, I just want a player with a function to call a key for example I want to make system execute the key ALT and it will do whatever I have on this button sth like this
Posts: 807
Threads: 62
Joined: Dec 2014
Reputation:
0
I just asked if it possible to call a key lel, I want test something on my gamemode
Posts: 417
Threads: 40
Joined: Oct 2013
Reputation:
0
Okay, so I think this is impossible to call a key(I THINK) xD