[Ajuda] /rc CHATO
#1

Bom, eu tava tentano fazer o meu /rc respawnar apenas os carro desocupado, e nгo estou conseguino, se alguem me ajudar eu agradeзo >.<

[pwn]if (strcmp("/rc", cmdtext, true, 10) == 0)
if(IsPlayerAdmin(playerid)){
for(new v; v<MAX_VEHICLES; v++) SetVehicleToRespawn(v);
return 1;
}[/pwn]
Reply
#2

http://forum.sa-mp.com/showpost.php?...3&postcount=68
Reply
#3

veja o topico de cima .-.
Reply
#4

Quote:
Originally Posted by Leeo_Perez
Посмотреть сообщение
veja o topico de cima .-.
Querer ganhar post й foda
husahusahhsahuas

Use a funзгo IsPlayerInVehicle para verificar se o player ta no carro, e use a SetVehicleToRespawn para respawnar os veiculos.
Reply
#5

tenta:
pawn Код:
stock SpawnAllCars()
{
    for(new i; i < MAX_VEHICLES; ++i)
    {
        for(new e; e < MAX_PLAYERS; ++e)
        {
            if(!IsPlayerInVehicle(e, i))
            {
                DestroyVehicle(i);
                printf("Veнculo: %d destruido");
            }
        }
    }
    return 1;
}
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)