26.05.2012, 18:31
Alright so im scripting a tutorial thing at the beginning of my script. I'm not exactly sure how to make it so it will change slides/words using middle mouse button. Can you help me? Ill Rec+
Use OnPlayerStateChange with the KEY_SUBMISSION button.
Here you can get all the keys you can use. https://sampwiki.blast.hk/wiki/GetPlayerKeys Please remember that this keys are different for every player,because every player have his own keyboard settings ingame. Ex: For you it can be middle mouse button,for me it's tab. |
CONVERSATION_YES(playerid, params[]) { if(InsideTut[playerid] < 1) { SendClientMessageEx(playerid, COLOR_WHITE, "You can't use the command outside the tutorial."); return 1; } switch(TutStep[playerid]) { |