SA-MP Forums Archive
tutorial slides using a Key - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: tutorial slides using a Key (/showthread.php?tid=345917)



tutorial slides using a Key - Johnny_Robins - 26.05.2012

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+


Re: tutorial slides using a Key - Johnny_Robins - 26.05.2012

can anyone help?


Re: tutorial slides using a Key - Face9000 - 26.05.2012

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.


Re: tutorial slides using a Key - Johnny_Robins - 26.05.2012

Quote:
Originally Posted by Logitech90
Посмотреть сообщение
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.
Yes this isn't exactly what im looking for. what im trying to do is create a button like MMB i prefer something like the "N" key which will transition threw a tutorial.


Re: tutorial slides using a Key - Face9000 - 26.05.2012

Use CONVERSATION_YES for Y key and CONVERSATION_NO for N key.


Re: tutorial slides using a Key - Johnny_Robins - 26.05.2012

So like

Quote:

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])
{