GameText Checkpoint?
#3

You are doing it wrong obviously. You need to use a variable to detect what the checkpoint is. Then you do something like:

pawn Код:
new NeonCheckpoint[MAX_PLAYERS];

public OnPlayerEnterCheckpoint(playerid)
{
    if(NeonCheckpoint[playerid] == 1)
    {
        GameTextForPlayer(playerid, "Do NOT abuse the neons!", 5000, 1);
        DisablePlayerCheckpoint(playerid);
    }
    return 1;
}
Now your 'SetPlayerCheckpoint' code doesn't need any chaning. But you need t add your new variable underneath it and set it to '1'. Like the example below shows.

pawn Код:
SetPlayerCheckpoint(playerid, 1.0, x, y, z);
NeonCheckpoint[playerid] = 1;

That is one method of doing it. And going to be the easiest to add for your script.
Reply


Messages In This Thread
GameText Checkpoint? - by ArmandoRamiraz - 27.07.2012, 16:05
Re: GameText Checkpoint? - by ArmandoRamiraz - 27.07.2012, 22:35
Re: GameText Checkpoint? - by Steven82 - 27.07.2012, 22:43
Re: GameText Checkpoint? - by Kakioshe22 - 27.07.2012, 22:48
Re: GameText Checkpoint? - by Steven82 - 27.07.2012, 22:52
Re: GameText Checkpoint? - by ArmandoRamiraz - 27.07.2012, 23:31
Re: GameText Checkpoint? - by Steven82 - 27.07.2012, 23:43
Re: GameText Checkpoint? - by ArmandoRamiraz - 27.07.2012, 23:44

Forum Jump:


Users browsing this thread: 1 Guest(s)