Little problem with textdraw
#1

Hi all. I made a safe zone textdraw. When the player is in safe zone, the textdraw shows up.
But when player is not in a safezone, the textdraw doesn't hide.

pawn Код:
public OnPlayerUpdate(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid, 130,1642.0690,-2241.6035,13.4940))
    {
        TextDrawShowForPlayer(playerid,safezone);
    }
        return 1;
}
forward SafeZone(playerid);
public SafeZone(playerid)
{
    if(IsPlayerInRangeOfPoint(playerid, 155.0 ,1642.0690,-2241.6035,13.4940))
    {
        TextDrawShowForPlayer(playerid,safezone);
    }
    if(!IsPlayerInRangeOfPoint(playerid, 155.0 ,1642.0690,-2241.6035,13.4940))
    {
        TextDrawHideForPlayer(playerid,safezone);
    }
    return 1;
}
shitty thing.
Reply


Messages In This Thread
Little problem with textdraw - by prooftzm - 11.08.2014, 12:29
Re: Little problem with textdraw - by AzaMx - 11.08.2014, 12:47
Re: Little problem with textdraw - by SKAzini - 11.08.2014, 13:10
Re: Little problem with textdraw - by prooftzm - 11.08.2014, 13:46
Re: Little problem with textdraw - by Pottus - 11.08.2014, 13:50
Re: Little problem with textdraw - by AzaMx - 12.08.2014, 05:04

Forum Jump:


Users browsing this thread: 1 Guest(s)