[Ajuda] Comando travando o servidor
#5

Quote:
Originally Posted by xXCallXX
Посмотреть сообщение
usa asim vai fica de boa

pawn Код:
if (strcmp("/rtc", cmdtext, true, 10) == 0) {
{
    new count = GetTickCount();
    print("[debug] Play");
    new bool:vehicle[MAX_VEHICLES];
    for(new j = 1; GetVehicleModel(j); ++j)
    {
        vehicle[j] = false;
        for(new i, p = GetMaxPlayers(); i < p; ++i)
        {
            if(!IsPlayerInAnyVehicle(i) || !IsPlayerConnected(i)) continue;
            if(IsPlayerInVehicle(i, j))
            {
                vehicle[j] = true;
                break;
            }
        }
        if(!vehicle[j]) SetVehicleToRespawn(j);
    }
    printf("[debug] Time taken to execute respawn: %d", GetTickCount() - count);
    return 1;
}
Reply


Messages In This Thread
Comando travando o servidor - by iHarzard - 14.02.2014, 18:45
Re: Comando travando o servidor - by xXCallXX - 14.02.2014, 18:59
Re: Comando travando o servidor - by iHarzard - 14.02.2014, 19:03
Re: Comando travando o servidor - by xXCallXX - 14.02.2014, 19:05
Re: Comando travando o servidor - by RayksonCouto - 14.02.2014, 19:51

Forum Jump:


Users browsing this thread: 1 Guest(s)