SA-MP Forums

Go Back   SA-MP Forums > Non-English > Languages > Português/Portuguese

Reply
 
Thread Tools Display Modes
Old 08/12/2018, 07:34 PM   #1
Mackanor
Big Clucker
 
Join Date: Jan 2018
Posts: 72
Reputation: 0
Question Veiculo

alguem me passa um comando para destruir os veiculos desocupados mais que eles respawnem no lugar de origem
Mackanor is offline   Reply With Quote
Old 08/12/2018, 08:32 PM   #2
Felipealves
Big Clucker
 
Join Date: Mar 2016
Location: Paraná
Posts: 132
Reputation: 3
Default Re: Veiculo

PHP Code:
VeiculoOcupado(veiculo){
    for(new 
0MAX_PLAYERSi++)
        if(
IsPlayerConnected(i))
            if(
GetPlayerState(i) == PLAYER_STATE_DRIVER || GetPlayerState(i) == PLAYER_STATE_PASSENGER)
                if(
GetPlayerVehicleID(i) == veiculo)
                    return 
true;
    return 
false;
}

CMD:respawncars(playerid){
    for(new 
veh 0veh MAX_VEHICLESveh++)
        if(!
VeiculoOcupado(veh))
            
SetVehicleToRespawn(veh);
    return 
1;

Felipealves is offline   Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[Ajuda] veiculo Mackanor Português/Portuguese 2 23/02/2018 01:56 AM
[Pedido] Veiculo SnowBorn Português/Portuguese 11 10/11/2017 11:57 PM
[Ajuda] NPC Veículo MKVplayer123 Português/Portuguese 1 07/03/2017 05:05 PM
[Ajuda] Veiculo /vip Paulo_Skyler Português/Portuguese 5 26/08/2012 02:38 PM
[Ajuda] Criar veiculo e destruir veiculo [NVC]Eduardo Português/Portuguese 5 01/02/2012 01:36 PM


All times are GMT. The time now is 08:36 AM.


Powered by vBulletin® Version 3.8.6
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.