[AJUDA]RESPAWNAR TODOS OS VEICULOS
#4

Corrigido:
pawn Код:
if(strcmp(cmdtext, "/respawnartodos", true) == 0)
{
    ResetarCarros(playerid);
    return 1;
}

stock ResetarCarros(playerid)
{
    new string[128];
    GetPlayerName(playerid, string, MAX_PLAYER_NAME);
    format(string, sizeof(string), "[INFO]: O Adminstrador %s Respawnou todos os veiculos", string);
    SendClientMessageToAll(0xFFFFFFFF, string);
    new bool:inVeh;
    for( new i = 0; i < MAX_VEHICLES; i++ )
    {
        inVeh = false;
        for( new j = 0; j < MAX_PLAYERS; j++ )
        {
            if(IsPlayerInVehicle( j, i ))
            {
                inVeh = true;
            }
        }
        if(!inVeh) SetVehicleToRespawn(i);
    }
    return true;
}
PS: Nгo tinha visto os outros posts.
Reply


Messages In This Thread
[AJUDA]RESPAWNAR TODOS OS VEICULOS - by Rodox_Mortein - 12.07.2011, 18:13
Re: [AJUDA]RESPAWNAR TODOS OS VEICULOS - by akZ - 12.07.2011, 18:19
Re: [AJUDA]RESPAWNAR TODOS OS VEICULOS - by JonathanFeitosa - 12.07.2011, 18:20
Re: [AJUDA]RESPAWNAR TODOS OS VEICULOS - by CyNiC - 12.07.2011, 18:21
Re: [AJUDA]RESPAWNAR TODOS OS VEICULOS - by BrunoBSF - 13.07.2011, 02:06

Forum Jump:


Users browsing this thread: 1 Guest(s)