setworldbounds at a deathmatch
#8

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;
}
Reply


Messages In This Thread
setworldbounds at a deathmatch - by smokey104 - 24.05.2009, 12:43
Re: setworldbounds at a deathmatch - by miokie - 24.05.2009, 14:16
Re: setworldbounds at a deathmatch - by smokey104 - 24.05.2009, 14:40
Re: setworldbounds at a deathmatch - by miokie - 24.05.2009, 14:47
Re: setworldbounds at a deathmatch - by smokey104 - 24.05.2009, 14:57
Re: setworldbounds at a deathmatch - by miokie - 24.05.2009, 14:59
Re: setworldbounds at a deathmatch - by smokey104 - 24.05.2009, 15:06
Re: setworldbounds at a deathmatch - by smokey104 - 24.05.2009, 16:08
Re: setworldbounds at a deathmatch - by smokey104 - 24.05.2009, 16:29

Forum Jump:


Users browsing this thread: 1 Guest(s)