[Ajuda] Carro nгo spawnar em determinada coordenada
#6

PHP код:
if (strcmp(cmd"/respawncarros"true) == 0) { 
        if (
IsPlayerConnected(playerid)) { 
            if (
PlayerInfo[playerid][pAdmin] < 3) { 
                
SendClientMessage(playeridCOLOR_GRAD1" Vocк nгo estб autorizado a usar este comando!"); 
                return 
true
            } 
            
GetPlayerName(playeridplayernamesizeof(playername)); 
            if (
admtrampando[playerid] == && admhide[playerid] == 1) { 
                
format(stringsizeof(string), "[Atenзгo] Todos os carros foram para seus locais de inicio. By: ADM_OCULTO "); 
            } else { 
                
format(stringsizeof(string), "[Atenзгo] Todos os veнculos foram para seus locais de inicio. By: %s."playername); 
            } 
            
SendClientMessageToAll(COLOR_LIGHTREDstring); 
            new 
boolunwanted[CAR_AMOUNT]; 
            for (new 
player 0player MAX_PLAYERSplayer++) { 
                if (
IsPlayerConnected(player) && IsPlayerInAnyVehicle(player)) { 
                    
unwanted[GetPlayerVehicleID(player)] = true
                } 
            } 
            for (new 
car 1car <= CAR_AMOUNTcar++)
            {
                if (
unwanted[car] == false)
                {
                    new 
Float:X,Float:Y,Float:Z;
                    
GetVehiclePos(carXYZ);
                    if((
2464.032) && (> -326.9805) && (< -829.1292) && (> -1051.009))
                    {
                    }
                    else
                    {
                        
SetVehicleToRespawn(car);
                    }
               }
            }
        } 
        return 
0
    } 
use o Xtreme Vehicle Plotter para pegar a posiзгo
no modo gangzones

PHP код:
//if((X < POS_X_MAX) && (X > POS_X_MIN) && (Y < POS_Y_MAX) && (Y > POS_Y_MIN)) 
Quote:

GangZoneCreate(Float:minx, Float:miny, Float:maxx, Float:maxy)











================================================== ======

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)