K0vrigel Posted May 17, 2018 Report Share Posted May 17, 2018 Salut,as vrea si eu sa stiu cum faci ca cand apesi o tasta sa se execute o comanda,gen cum apesi 2 pentru comanda /engine Quote Link to comment Share on other sites More sharing options...
1 Sirius Pawno Posted May 17, 2018 Report Share Posted May 17, 2018 Salut, daca folosesti procesorul de comenzi zcmd adauga asta in key_submission cmd_engine(playerid, params); Quote Link to comment Share on other sites More sharing options...
0 AlexxAdv Posted May 17, 2018 Report Share Posted May 17, 2018 (edited) La public onplayerkeystatechange if (newkeys == KEY_LOOK_BEHIND) { cmd_engine(playerid,""); Edited May 17, 2018 by AlexxAdv Quote Link to comment Share on other sites More sharing options...
0 LeonardPWN Posted May 17, 2018 Report Share Posted May 17, 2018 public-ul OnPlayerKeyStateChange Cheile pe care PAWN-ul le recunoaste: http://wiki.sa-mp.com/wiki/Keys Si de aici te descurci singur. Quote Link to comment Share on other sites More sharing options...
0 ASGOOD Posted May 17, 2018 Report Share Posted May 17, 2018 4 hours ago, AlexxAdv said: La public onplayerkeystatechange if (newkeys == KEY_LOOK_BEHIND) { cmd_engine(playerid,""); Bunule, uite asa se face. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(newkeys == KEY_LOOK_BEHIND) return cmd_engine(playerid, params); // Fara [] return 1; } Quote Link to comment Share on other sites More sharing options...
0 LeonardPWN Posted May 17, 2018 Report Share Posted May 17, 2018 Acum 20 minute, ASGOOD a spus: Bunule, uite asa se face. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(newkeys == KEY_LOOK_BEHIND) return cmd_engine(playerid, params); // Fara [] return 1; } public OnPlayerKeyStateChange( playerid, newkeys, oldkeys ) { if( newkeys == KEY_LOOK_BEHIND ) { return cmd_engine( playerid, params ); } return true; } Quote Link to comment Share on other sites More sharing options...
0 AlexxAdv Posted May 18, 2018 Report Share Posted May 18, 2018 10 hours ago, ASGOOD said: Bunule, uite asa se face. public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(newkeys == KEY_LOOK_BEHIND) return cmd_engine(playerid, params); // Fara [] return 1; } Garantez ca merge si cum am zis eu Quote Link to comment Share on other sites More sharing options...
0 ASGOOD Posted May 18, 2018 Report Share Posted May 18, 2018 Sunt foarte sigur ca nu merge. On 5/17/2018 at 6:41 PM, AlexxAdv said: La public onplayerkeystatechange if (newkeys == KEY_LOOK_BEHIND) { cmd_engine(playerid,""); Dar astea 2 merg sigur. 21 hours ago, LeonardPWN said: public OnPlayerKeyStateChange( playerid, newkeys, oldkeys ) { if( newkeys == KEY_LOOK_BEHIND ) { return cmd_engine( playerid, params ); } return true; } 22 hours ago, ASGOOD said: public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) { if(newkeys == KEY_LOOK_BEHIND) return cmd_engine(playerid, params); // Fara [] return 1; } Quote Link to comment Share on other sites More sharing options...
0 AlexxAdv Posted May 18, 2018 Report Share Posted May 18, 2018 Eu zic sa testezi si ma anunti Quote Link to comment Share on other sites More sharing options...
Question
K0vrigel
Salut,as vrea si eu sa stiu cum faci ca cand apesi o tasta sa se execute o comanda,gen cum apesi 2 pentru comanda /engine
Link to comment
Share on other sites
8 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.