05.06.2011, 23:24
So basically I am making a tutorial using OnPlayerKeyStateChange
It looks like this:
And it repeats for tutorial stage 2-5.
However, the problem I have run into is when I press my fire key it plays the whole tutorial when it's only supposed to play one stage.
It looks like this:
Code:
if(PlayerInfo[playerid][TutorialStage] == 1)
{
if ((oldkeys & KEY_FIRE) && !(newkeys & KEY_FIRE))
{
PlayerInfo[playerid][TutorialStage] = 2;
SendClientMessage(playerid, WHITE, "Example.");
}
}
However, the problem I have run into is when I press my fire key it plays the whole tutorial when it's only supposed to play one stage.


