31.10.2015, 16:04
(
Последний раз редактировалось Traal; 06.11.2015 в 17:26.
)
Resolvido
ele tem a gangzone e tem um interior em cima do local da gangzone e ele quer que quando o player entre no interior nao de que ele esteja dentro da gz entendeu?
|
stock NaGangZone(playerid, Float:gminx, Float:gminy, Float:gmaxx, Float:gmaxy)
{
new Float:x,Float:y,Float:z;
GetPlayerPos(playerid, x, y, z);
if(x >= gminx && y >= gminy && x <= gmaxx && y <= gmaxy) return true;
else return false;
}
forward NomedoTime(playerid);
public NomedoTime(playerid)
{
if(NaGangZone(playerid, Float:gminx, Float:gminy, Float:gmaxx, Float:gmaxy) && TaNoIntX[playerid] == 1)
{
GangZoneHideForPlayer(playerid, suagangzone);
}
else if(TaNoIntX[playerid] == 0)
{
GangZoneShowForPlayer(playerid, suagangzone, cor);
}
return 1;
}