24.05.2009, 16:29
new script didnt work either.
public isPlayerInArea()
{
new Float:X,Float:Y,Float:Z;
for(new i = 0; i < MAX_PLAYERS; i++)
{
GetPlayerPos(i,X,Y,Z);
if(X <= 2748.810791 && X >= 2498.679443 && Y <= 2857.039550 && Y >= 2704.64672 // Checks the player area
{
SetPlayerWorldBounds(i, 2872.427, 2751.377, 1040.031, 850.4955);
GivePlayerWeapon(i, 32, 999);
}
}
return 1;
}
public isPlayerInArea()
{
new Float:X,Float:Y,Float:Z;
for(new i = 0; i < MAX_PLAYERS; i++)
{
GetPlayerPos(i,X,Y,Z);
if(X <= 2748.810791 && X >= 2498.679443 && Y <= 2857.039550 && Y >= 2704.64672 // Checks the player area
{
SetPlayerWorldBounds(i, 2872.427, 2751.377, 1040.031, 850.4955);
GivePlayerWeapon(i, 32, 999);
}
}
return 1;
}