GangZone
#3

PHP код:
IsPlayerInArea(playeridFloat:minxFloat:maxxFloat:minyFloat:maxy)
{
    new 
Float:xFloat:yFloat:z;
    
GetPlayerPos(playeridxyz);
    if (
minx && maxx && miny && maxy) return 1;
    return 
0;

PHP код:
for(new ii<(the variable for your max gang zones); i++)
{
        if(
IsPlayerInArea(playeridInfoZone[i][gMin_x], InfoZone[i][gMax_x], InfoZone[i][gMin_y], InfoZone[i][gMax_y]))
        {
                
// do this
        
}

Reply


Messages In This Thread
GangZone - by Mamoru - 23.11.2017, 18:22
Re: GangZone - by FailerZ - 23.11.2017, 18:34
Re: GangZone - by frouzen - 23.11.2017, 18:35
Re: GangZone - by Mamoru - 23.11.2017, 18:49
Re: GangZone - by Mamoru - 23.11.2017, 18:52

Forum Jump:


Users browsing this thread: 2 Guest(s)