11.08.2014, 12:47
try this?
pawn Код:
public OnPlayerUpdate(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 130,1642.0690,-2241.6035,13.4940))
{
TextDrawShowForPlayer(playerid,safezone);
}
else if(!IsPlayerInRangeOfPoint(playerid, 155.0 ,1642.0690,-2241.6035,13.4940)) //remove this if no needed i think
}//remove this if no needed i think
TextDrawHideForPlayer(playerid,safezone);//remove this if no needed i think
}//remove this if no needed i think
return 1;
}
forward SafeZone(playerid);
public SafeZone(playerid)
{
if(IsPlayerInRangeOfPoint(playerid, 155.0 ,1642.0690,-2241.6035,13.4940))
{
TextDrawShowForPlayer(playerid,safezone);
}
else if(!IsPlayerInRangeOfPoint(playerid, 155.0 ,1642.0690,-2241.6035,13.4940))
{
TextDrawHideForPlayer(playerid,safezone);
}
return 1;
}