SA-MP Forums Archive
Simple question - 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: Simple question (/showthread.php?tid=286496)



Simple question - random123 - 29.09.2011

I am editing a gf game mode and I am changing the tutorial, I want to make it so when you press the fire key it goes to the next textdraw how would i do that? here is a small portion of the code, read the comments if you dont understand what im asking. I tried googling it I did not know how to explain it

Код:
                   if(TutTime[i] == 3) // so when i press the fire key here
				{
					TextDrawShowForPlayer(i, Tut3);//this will show up
				}
				else if(TutTime[i] == 8)//press the fire key here
				{
					TextDrawHideForPlayer(i, Tut3);// that will show up
					TextDrawShowForPlayer(i, Tut4);
				}



Re: Simple question - Dragony92 - 29.09.2011

You need to put tutorial in public OnPlayerKeyStateChange and use KEY_FIRE


Re: Simple question - random123 - 29.09.2011

Alright thanks, this can be closed now.