Help me pls.
#7

I'd personally something like this (an example as I don't know anything about your minigame). Also use player-textdraws:
PHP код:
new Player_DMV@CP[MAX_PLAYERS];
// OnPlayerConnect and when the player completes the minigame:
Player_DMV@CP[playerid] = 0;
// Also create the player-textdraws on connect
// when the minigame starts (in case the player is IN the checkpoint):
if (IsPlayerInRaceCheckpoint(playerid)) OnPlayerEnterRaceCheckpoint(playerid);
// OnPlayerEnterRaceCheckpoint:
// have a variable of whether it has started or not if it has countdown and:
if (MINIGAME_HAS_NOT_STARTED_VARIABLE) return 1// at the top so it won't go to the next checkpoint
// if it doesn't have a countdown, skip it
switch (MAX_CHECKPOINTS_VARIABLE Player_DMV@CP[playerid])
{
    case 
1:
    {
        
// player got last checkpoint.. end it for the player
        
DisablePlayerRaceCheckpoint(playerid);
    }
    case 
2:
    {
        ++
Player_DMV@CP[playerid];
        
SetPlayerRaceCheckpoint(playerid1X_CP_HEREY_CP_HEREZ_CP_HERE0.00.00.09.0);
    }
    default:
    {
        ++
Player_DMV@CP[playerid];
        
SetPlayerRaceCheckpoint(playerid0X_CP_HEREY_CP_HEREZ_CP_HEREX_CP_NEXT_HEREY_CP_NEXT_HEREZ_CP_NEXT_HERE9.0);
    }
}
new 
text[30];
format(textsizeof (text), "DMV CHECKPOINTS: %i/%i"Player_DMV@CP[playerid], MAX_CHECKPOINTS_VARIABLE);
PlayerTextDrawSetString(playeridPLAYER_TEXTDRAW_HEREtext); 
Reply


Messages In This Thread
Help me pls. - by Sn4ke2 - 19.05.2015, 18:22
Re: Help me pls. - by Sn4ke2 - 22.05.2015, 09:30
Re: Help me pls. - by Bingo - 22.05.2015, 09:32
Re: Help me pls. - by Sn4ke2 - 22.05.2015, 09:34
Re: Help me pls. - by Konstantinos - 22.05.2015, 09:36
Re: Help me pls. - by Sn4ke2 - 22.05.2015, 09:37
Re: Help me pls. - by Konstantinos - 22.05.2015, 09:57
Re: Help me pls. - by Sn4ke2 - 22.05.2015, 10:40
Re: Help me pls. - by Konstantinos - 22.05.2015, 10:44
Re: Help me pls. - by Sn4ke2 - 22.05.2015, 10:58

Forum Jump:


Users browsing this thread: 1 Guest(s)