Help with one thing (+rep)
#3

To show it once, you could create a variable...

EG:

pawn Код:
new BoxShown[MAX_PLAYERS];

public OnPlayerConnect(playerid)
{
    BoxShown[playerid] = 0;
}

if(IsPlayerInRangeOfPoint(playerid, 5.0, 1629.9722,147.9344,35.5146))
{
    if(BoxShown[playerid] == 0) //This checks if the box is allowed to be shown.
    {
        CreateBox(playerid, "info", "Welcome to las venturas");
        BoxShown[playerid] = 1; //This states that the box shouldn't be shown again.
    }
}
Edit: Above, you beat me. Nice
Reply


Messages In This Thread
Help with one thing (+rep) - by Dripac - 11.05.2012, 21:49
Re: Help with one thing (+rep) - by Jack_Leslie - 11.05.2012, 21:53
Re: Help with one thing (+rep) - by iGetty - 11.05.2012, 21:53
Re: Help with one thing (+rep) - by Dripac - 11.05.2012, 21:54
Re: Help with one thing (+rep) - by iGetty - 11.05.2012, 21:56
Re: Help with one thing (+rep) - by Jack_Leslie - 11.05.2012, 21:56
Re: Help with one thing (+rep) - by Dripac - 11.05.2012, 21:56
Re: Help with one thing (+rep) - by iGetty - 11.05.2012, 21:58
Re: Help with one thing (+rep) - by Jack_Leslie - 11.05.2012, 21:58

Forum Jump:


Users browsing this thread: 1 Guest(s)