[Pedido] Este Comando Mais Rapido
#2

pawn Код:
CMD:rc(playerid, params[])
{
    SendAdminText(playerid, "/rc", params);

    if (APlayerData[playerid][PlayerLevel] < 3) return SendClientMessageToAll(-1, "{FFFF00}[ERRO]  {FF0000}Vocк nгo tem permissгo para usar esse comando!");
    {
       
        for(new i; i < MAX_VEHICLES; i++)
        {
            if(!IsVehicleInUse(i))
            SetVehicleToRespawn(i);
        }
        SendClientMessageToAll(-1, "{FFFF00}[INFO] {00FF00}O administrador respawnou todos os veнculos desocupados!");
    }
    return 1;
}

stock IsVehicleInUse(vehicleid)
{
    new Veiculo;
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(GetPlayerVehicleID(i) == vehicleid)
            Veiculo = vehicleid;
        if(GetVehicleTrailer(GetPlayerVehicleID(i)) == vehicleid)
            Veiculo = vehicleid;
    }
    return Veiculo;
}
Reply


Messages In This Thread
Este Comando Mais Rapido - by giovanehen - 02.02.2014, 21:22
Re : Este Comando Mais Rapido - by ThiagoMK - 02.02.2014, 21:26
Re: Este Comando Mais Rapido - by giovanehen - 02.02.2014, 21:36
Re : Este Comando Mais Rapido - by ThiagoMK - 02.02.2014, 21:42
Re: Este Comando Mais Rapido - by lHesoyaml - 02.02.2014, 21:42
Re: Este Comando Mais Rapido - by kevinho.007 - 02.02.2014, 21:43
Re: Este Comando Mais Rapido - by giovanehen - 02.02.2014, 22:06
Re: Este Comando Mais Rapido - by kevinho.007 - 02.02.2014, 22:30
Re: Este Comando Mais Rapido - by recagonlei - 03.02.2014, 05:29
Re: Este Comando Mais Rapido - by zSuYaNw - 03.02.2014, 06:37

Forum Jump:


Users browsing this thread: 4 Guest(s)