24.05.2009, 16:08
What do i wrong this time?
I search, search and search and try this option:
forward isPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy);
public OnFilterScriptInit()
{
SetTimer("IsPlayerInArea",10000,false);
public isPlayerInArea()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInArea(i, 2748.810791, 2498.679443, 2857.039550, 2704.64672) // seifs isplayerinarea used
{
SetPlayerWorldBounds(i, 2872.427, 2751.377, 1040.031, 850.4955); // xtreme mapper used
return 1;
}
}
return 1;
}
IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy)
{
new Float, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
if (x > minx && x < maxx && y > miny && y < maxy) return 1;
return 0;
}
I search, search and search and try this option:
forward isPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy);
public OnFilterScriptInit()
{
SetTimer("IsPlayerInArea",10000,false);
public isPlayerInArea()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerInArea(i, 2748.810791, 2498.679443, 2857.039550, 2704.64672) // seifs isplayerinarea used
{
SetPlayerWorldBounds(i, 2872.427, 2751.377, 1040.031, 850.4955); // xtreme mapper used
return 1;
}
}
return 1;
}
IsPlayerInArea(playerid, Float:minx, Float:maxx, Float:miny, Float:maxy)
{
new Float, Float:y, Float:z;
GetPlayerPos(playerid, x, y, z);
if (x > minx && x < maxx && y > miny && y < maxy) return 1;
return 0;
}