02.05.2010, 15:29
hi i wnna create a safe zone
but how do i check if the player is inside a gang zone?
but how do i check if the player is inside a gang zone?
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
if((X < GANG_X_MAX) && (X < GAME_X_MIN) && (Y < GANG_Y_MAX) && (Y > GANG_Y_MIN))
{
//He's in the gang zone
}
Originally Posted by Baked-Banana
pawn Код:
|
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid,X,Y,Z);
if((X < GANG_X_MAX) && (X > GAME_X_MIN) && (Y < GANG_Y_MAX) && (Y > GANG_Y_MIN))
{
//He's in the gang zone
}