[Ajuda] Respawn Veiculos
#3

ixi mano eu achei pela logica mais num deu ainda e respawnado

Olha meu comando

pawn Код:
if(strcmp(cmd, "/rvu", true) == 0)
    {
        if(pAdmin[playerid] > 0)
        {
            for(new v = 0; v < MAX_VEHICLES; v++)
            {
                if(!IsVehicleOccupied(v)) SetVehicleToRespawn(v);
            }
            SendClientMessage(playerid, Verde, "Veнculos desocupados respawnados!");
            format(string, sizeof(string), "O(A) ADM %s (%d) respawnou todos os veнculos desocupados.", PlayerName(playerid), playerid);
            SendClientMessageToAll(tcadm, string);
        }
        return 1;
    }
e a Stock e essa Olha como coloquei isso mais nem deu certo

pawn Код:
stock IsVehicleOccupied(vehicleid)
{
    for(new i = 0; i < MAX_PLAYERS; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(GetPlayerState(i) == PLAYER_STATE_DRIVER || GetPlayerState(i) == PLAYER_STATE_PASSENGER
|| IsTrailerAttachedToVehicle(vehicleid))
            {
                if(GetPlayerVehicleID(i) == vehicleid)
                {
                    return 1;
                }
            }
        }
    }
    return 0;
}

tente me ajudar ai lek pf esse ta foda ja tinha feito isso mais num deu tentei di nv e num deu
Reply


Messages In This Thread
Respawn Veiculos - by Sky™ - 25.08.2012, 23:19
Re: Respawn Veiculos - by Kmatsu - 25.08.2012, 23:49
Re: Respawn Veiculos - by Sky™ - 25.08.2012, 23:51
Respuesta: Respawn Veiculos - by davi54723 - 26.08.2012, 02:21
Re: Respawn Veiculos - by Sky™ - 26.08.2012, 02:49

Forum Jump:


Users browsing this thread: 1 Guest(s)