Native help
#1

Does anyone know that native IsPlayerInAreaOf or something like that not IsPlayerInRageOfPoint??

i need it for teh script
Reply
#2

You mean with area names?
Reply
#3

pawn Код:
public IsPlayerInArea(playerid, Float:maxx, Float:maxy, Float:maxz, Float:minx, Float:miny, Float:minz)
{
   new Float:x, Float:y, Float:z;
   GetPlayerPos(playerid, x, y, z);
   if(x < maxx && y < maxy && z < maxz && x > minx && y > miny && z > minz) return 1;
   return 0;
}
Reply
#4

well maybe if i understand what your saying^^ but i mean like i seen it before it was IsPlayerRangeOfArea or something like that i cant remember it

EDIT: Yeah carlton that but can u explain the maxx maxy maxz minx miny minz that stuff?
Reply
#5

MAX(x,y,z) o----------
| |
| |
| |
----------oMIN(x,y,z)

I think its osmething like this


EDIT: Okay fail :P
Reply
#6

lol this confusing me now like i need it so that i can do something like this

pawn Код:
forward IsPlayerRangeOfArea(playerid, Float:minx, Float:miny, Float:maxx, Float:maxy);
pawn Код:
public IsPlayerRangeOfArea(playerid, Float:minx, Float:miny, Float:maxx, Float:maxy)
{
    IsPlayerRangeOfArea(playerid, -2135.883, 136.4459, -2000.689, 353.4189);
    SendClientMessage(playerid, COLOR_RED, "WARNING: You are in Workers Zone");
    return 1;
}
I has that in my script atm for testing see if it works, no errors no warning but dont show the message, i want something like that and what carlton said looked like help but i dont understand it
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)