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

Eu fiz assim, mas os carros dentro dessa coordenada ainda respawnam com o comando, serб por que?

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: Mr_Capitao.");
            } 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((
942.2568) && (> -1500.266) && (1086.765) && (> -1401.572))
                    {
                        
//
                    
}
                    else
                    {
                        
SetVehicleToRespawn(car);
                    }
               }
            }
        }
        return 
0;
    } 
As coordenadas estгo certas pфs fiz um comando pra testar:

PHP код:
if (strcmp(cmd"/testecord"true) == 0)
{
new 
sennior;
sennior GangZoneCreate(942.2568, -1500.2661086.765, -1401.572);
GangZoneShowForPlayer(playeridsennior0x00FFFF5C);
return 
1;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 5 Guest(s)