[AJUDA] GZ com cores.
#4

Public que domina:
pawn Код:
public ZoneCheckpoint()
{
    for(new i; i < MAX_PLAYERS; i++)
    {
        if(!IsPlayerConnected(i))continue;
        if(CPS_GetPlayerCheckpoint(i) > 0 && CPS_GetPlayerCheckpoint(i) <= 2 &&
            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 15 segundos dentro do checkpoint
            {
                GameTextForPlayer(i, "~w~Conquistado", 4000, 1);
                gzcolor[CPS_GetPlayerCheckpoint(i)-1] = GetPlayerColor(i);
                GangZoneStopFlashForAll(CPS_GetPlayerCheckpoint(i)-1);
                GangZoneHideForAll(CPS_GetPlayerCheckpoint(i)-1);
                GangZoneShowForAll(CPS_GetPlayerCheckpoint(i)-1, GetPlayerColor(i));
            }
        }
    }
}
Parece estar tudo certo mas fica mal. Nгo fica centrado:
http://imageshack.us/photo/my-images/42/samp075af.png/


Ajuda PFF
Reply


Messages In This Thread
[AJUDA] GZ com cores. - by Skun Fly - 27.03.2012, 20:06
Re: [AJUDA] GZ com cores. - by .FuneraL. - 27.03.2012, 20:20
Re: [AJUDA] GZ com cores. - by Skun Fly - 27.03.2012, 20:23
Re: [AJUDA] GZ com cores. - by Skun Fly - 27.03.2012, 20:59

Forum Jump:


Users browsing this thread: 1 Guest(s)