Show Gametext
#3

PlayerToPoint its the same as IsPlayerInRangeOfPoint only the the new native function is faster

Here a macro for all PlayerToPoint lover
pawn Код:
#define PlayerToPoint(%0,%1, IsPlayerInRangeOfPoint(%1,%0,
And the IsPlayerInArea function only checks for an area along the x and y axes

If you search for a function with any count of corners and any shape then search for IsPlayerInPerimeter (only one result )

I think you only need IsPlayerInRangeOfPoint for it, so just create a timer (like Coole already told us)

pawn Код:
//mostly OnGameModeInit
SetTimer("Timer", 1000, true);
pawn Код:
forward Timer();
public Timer()
{
    for(new i; i != MAX_PLAYERS; i++)
    { //loops through all players
        if(IsPlayerInRangeOfPoint(playerid, 5.0, X, Y, Z))
        { //check if the player in in range of X, Y, Z
            GameTextForPlayer(playerid, "Hello!", 5000, 4); //the gametext
        }
    }
}
(Only wrote that because your (Coole) code looks a bit glutted for me :S)
Reply


Messages In This Thread
Show Gametext - by TKZ227 - 27.05.2010, 00:06
Re: Show Gametext - by coole210 - 27.05.2010, 00:16
Re: Show Gametext - by Nero_3D - 27.05.2010, 01:24

Forum Jump:


Users browsing this thread: 1 Guest(s)