[Ajuda]Avisar os players da gang
#3

cara valeu msm mais tipo assim meu server e de dominar em checkpoints da tbm?
pawn Код:
for(new i; i < MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i))continue;
        if(CPS_GetPlayerCheckpoint(i) > 0 && CPS_GetPlayerCheckpoint(i) <= 100 &&
            //sгo 11 checkpoints, entгo mude se for colocar mais...
            gzcolor[CPS_GetPlayerCheckpoint(i)-1] != GetPlayerColor(i))
        {
            if(cpzone[i][CPS_GetPlayerCheckpoint(i)] < 15)
            {
                cpzone[i][CPS_GetPlayerCheckpoint(i)]++;
                new tmp[10];
                format(tmp, sizeof tmp, "~w~%2d/15", cpzone[i][CPS_GetPlayerCheckpoint(i)]);
                GameTextForPlayer(i, tmp, 1001, 4);
                GangZoneFlashForAll(CPS_GetPlayerCheckpoint(i)-1, GetPlayerColor(i));
            }
            else if(cpzone[i][CPS_GetPlayerCheckpoint(i)] == 15) //passou 30 segundos dentro do checkpoint
            {
                GameTextForPlayer(i, "~w~Conquistado +2 score", 4000, 1);
                SetPlayerScore(i, GetPlayerScore(i) + 2);
                GetPlayerName(i, playername, MAX_PLAYER_NAME);

                gzcolor[CPS_GetPlayerCheckpoint(i)-1] = GetPlayerColor(i);
                GangZoneStopFlashForAll(CPS_GetPlayerCheckpoint(i)-1);
                GangZoneHideForAll(CPS_GetPlayerCheckpoint(i)-1);
                GangZoneShowForAll(CPS_GetPlayerCheckpoint(i)-1, GetPlayerColor(i));
            }
        }
    }
}
Como coloca?
Reply


Messages In This Thread
[Ajuda]Avisar os players da gang - by Link_ - 22.07.2010, 22:52
Re: [Ajuda]Avisar os players da gang - by sergio_xd - 23.07.2010, 19:23
Re: [Ajuda]Avisar os players da gang - by Link_ - 24.07.2010, 21:53
Re: [Ajuda]Avisar os players da gang - by sergio_xd - 25.07.2010, 12:53
Re: [Ajuda]Avisar os players da gang - by Link_ - 25.07.2010, 21:00

Forum Jump:


Users browsing this thread: 1 Guest(s)