tutorial slides using a Key
#1

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+
Reply
#2

can anyone help?
Reply
#3

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.
Reply
#4

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.
Reply
#5

Use CONVERSATION_YES for Y key and CONVERSATION_NO for N key.
Reply
#6

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

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)