Quantcast
Channel: SA-MP Forums
Viewing all articles
Browse latest Browse all 18226

IsPlayerInArea

$
0
0
Hello.
I have problem with isplayerinarea in my gamemode i have this
Code:

if(IsPlayerInArea(playerid, 1331.2108, 1320.6995, 236.5835, 306.1077))
        {
          GameTextForPlayer(playerid, "~g~Welcome", 3000, 5);
         
        }

but IsPlayerInArea didn't work. (good x,y)
Function IsPlayerInArea
Code:

IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, 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;
}

Can somebody help?

Viewing all articles
Browse latest Browse all 18226

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>