[Pedido] Deletar todos os veнculos criados /dtc
#1

To em busca de um simples comando em ZCMD que deleta todos os veнculos criados.

Tenho /RTC que da respawn nos veнculos que jб estгo no servidor mais queria tambйm o /DTC

/RTC \/
PHP код:
CMD:rtc(playeridparams[])
{
if(
pAdmin[playerid][Level] < 5) return SendClientMessage(playeridCOR_ERRO"Vocк nгo tem permissгo para este comando.");
ResetarCarros(playerid);
    return 
1;

No fim do GM:
PHP код:
stock ResetarCarros(playerid)
{
    new 
string[128];
    
GetPlayerName(playeridstringMAX_PLAYER_NAME);
    
format(stringsizeof(string), "AdmCMD: O Adminstrador %s respawnou todos os veiculos!"string);
    
SendClientMessageToAll(0xFFFFFFFFstring);
    new 
bool:inVeh;
    for( new 
0MAX_VEHICLESi++ )
    {
        
inVeh false;
        for( new 
0MAX_PLAYERSj++ )
        {
            if(
IsPlayerInVehiclej))
            {
                
inVeh true;
            }
        }
        if(!
inVehSetVehicleToRespawn(i);
    }
    return 
true;

Neste mesmo estilo, se possнvel. Agradeзo desde jб.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)