26.12.2015, 17:09
pawn Код:
GangZoneCreate(128.1725,1274.4392,-365.3042,944.3629);
fiz isso no onplayerupdate
if(IsPlayerInArea(playerid,128.1725,1274.4392,-365.3042,944.3629) && arena == 3) {
return 1;
} else {
SendClientMessage(playerid, COLOR_RED, "volta pra arena ou vc vai ser morto!");
return 0;
}
e peguei essa stock no forum
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;
}