[HELP]When you enter a gangzone how do i suppose to make a message pop up ?
#1

The title says it all!
Reply
#2

PHP код:
IsPlayerInArea(playerid, Float:MinX, Float:MinY, Float:MaxX, Float:MaxY)
{
    new 
Float:X, Float:Y, Float:Z;

    
GetPlayerPos(playerid, X, Y, Z);
    if(
X >= MinX && X <= MaxX && Y >= MinY && Y <= MaxY) {
        return 
1;
    }
    return 
0;
} 
I don't know who the credits goes to. And if you want a message to pop-up use this funtion at OnPlayerUpdate. Example: if(IsPlayerInArea(player, /*positions*/))
Reply


Forum Jump:


Users browsing this thread: