[Ajuda] Respawn de Veiculos
#9

Quote:
Originally Posted by JoaoMonteiro
Посмотреть сообщение
PHP код:
CMD:resetarveiculos(playeridparams[])
{
    
SendAdminText(playerid"/resetarveiculos"params);
    if(
APlayerData[playerid][PlayerLevel] < 2) return SendClientMessage(playerid, -1"{ff0000}Vocк precisa ser admin nivel 2 para usar este comando!");
    for(new 
iMAX_VEHICLESi++)
        if(!
IsVehicleInUse(i))
            
SetVehicleToRespawn(i);
    return 
1;
}
stock IsVehicleInUse(vehicleid)
{
    new 
Veiculo;
    for(new 
iMAX_PLAYERSi++)
    {
        if(
GetPlayerVehicleID(i) == vehicleid)
            
Veiculo vehicleid;
        if(
GetVehicleTrailer(GetPlayerVehicleID(i)) == vehicleid)
            
Veiculo vehicleid;
    }
    return 
Veiculo;

vlw funcionou !
Reply


Messages In This Thread
Respawn de Veiculos - by Luucass - 26.05.2014, 21:00
Re: Respawn de Veiculos - by Luucass - 26.05.2014, 21:19
Re: Respawn de Veiculos - by Alwe - 26.05.2014, 21:57
Re: Respawn de Veiculos - by Luucass - 26.05.2014, 22:04
Re: Respawn de Veiculos - by Alwe - 26.05.2014, 22:08
Re: Respawn de Veiculos - by Input - 26.05.2014, 22:09
Re: Respawn de Veiculos - by MatheusDalZot - 26.05.2014, 22:10
Re: Respawn de Veiculos - by JoaoMonteiro - 26.05.2014, 22:18
Re: Respawn de Veiculos - by Luucass - 26.05.2014, 23:35

Forum Jump:


Users browsing this thread: 1 Guest(s)