Quote:
|
Originally Posted by MadeMan
Use this function:
pawn Код:
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; }
And
pawn Код:
new cmd[256]; // You don't need it if(strcmp(cmdtext, "/mycommand", true) == 0) // Few changes here { if(IsPlayerInArea(playerid, -70.06725, 1646.58, 432.0814, 2125.373)) { GameTextForPlayer(playerid, "Entering Army Territory", 1, 1); } return 1; }
|
will it show automatically? i'll go test it now