18.12.2017, 13:41
Hello.
I have problem with isplayerinarea in my gamemode i have this
but IsPlayerInArea didn't work. (good x,y)
Function IsPlayerInArea
Can somebody help?
I have problem with isplayerinarea in my gamemode i have this
Код:
if(IsPlayerInArea(playerid, 1331.2108, 1320.6995, 236.5835, 306.1077)) { GameTextForPlayer(playerid, "~g~Welcome", 3000, 5); }
Function IsPlayerInArea
Код:
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; }