/rc Respawn de Carros
#8

Quote:
Originally Posted by [O.z]Caroline
Посмотреть сообщение
pawn Код:
stock ResetarCarros()
{
        SendClientMessageToAll(-1, "algum administrador espawnou todos os carros.");
        static bool:inVeh;
    for(new i; i < MAX_VEHICLES; i++ )
        {
                inVeh = false;
        for(new j; j < GetMaxPlayers(); j++ )
                {
                        if(IsPlayerInVehicle( j, i ))
                        inVeh = true;
                        break;
                }
        if(!inVeh) SetVehicleToRespawn(i);
   }
}
Creditos: desconhecido.
pawn Код:
if(strcmp("/rc", cmdtext, true, 3) == 0) return ResetarCarros();
pawn Код:
stock ResetarCarros()
{
    new
        Nome[MAX_PLAYER_NAME],
        sStr[27 + MAX_PLAYER_NAME]
    ;
    GetPlayerName(playerid, Nome, sizeof(Nome));
    format(sStr, sizeof(sStr), "%s respawnou todos os carros!", Nome);
    SendClientMessageToAll(-1, sStr);
    new bool:inVeh;
    for(new i; i < MAX_VEHICLES; i++ )
    {
        inVeh = false;
        for(new j; j < GetMaxPlayers(); j++ )
        {
            if(IsPlayerInVehicle(j, i))
            inVeh = true;
            break;
        }
        if(!inVeh) SetVehicleToRespawn(i);
    }
    return 1;
}
Reply


Messages In This Thread
/rc Respawn de Carros - by Vinicius DarK - 21.09.2011, 01:16
Re: /rc Respawn de Carros - by Lohran - 21.09.2011, 01:18
Re: /rc Respawn de Carros - by Lуs - 21.09.2011, 01:19
Re: /rc Respawn de Carros - by Dolby - 21.09.2011, 01:22
Re: /rc Respawn de Carros - by WLSF - 21.09.2011, 01:23
Re: /rc Respawn de Carros - by Macintosh - 21.09.2011, 01:23
Re: /rc Respawn de Carros - by [O.z]Caroline - 21.09.2011, 01:32
Re: /rc Respawn de Carros - by Macintosh - 21.09.2011, 01:53
Re: /rc Respawn de Carros - by [O.z]Caroline - 21.09.2011, 02:25
Re: /rc Respawn de Carros - by Vinicius DarK - 21.09.2011, 12:21

Forum Jump:


Users browsing this thread: 1 Guest(s)