need help
#8

i fail to make it textdraw but chek this if you like it tell me o.o:
PHP код:
forward gangzonetimer(playerid);
new 
timer1[MAX_PLAYERS];
new 
count 120;
public 
ZoneUpdate()
{
    for(new 
z=0MAX_ZONESz++)
    {
        if(
ZoneTakeOverTeam[z] == -1)
        {
            for(new 
t=0MAX_TEAMSt++)
            {
                if(
== ZoneInfo[z][z_team]) continue;
                if(
GetMembersInZone(zt) >= 1)
                {
                    
ZoneTakeOverTeam[z] = t;
                    
timer1[playerid] = SetTimerEx("gangzonetimer"10001"d"playerid);
                    
GameTextForPlayer(playerid"~r~Gang Zone War CountDown Started"10000);
                    
ZoneTakeOverTime[z] = 0;
                }
            }
        }
        else
        {
            if(
GetMembersInZone(zZoneTakeOverTeam[z]) > 0)
            {
                
ZoneTakeOverTime[z]++;
                if(
ZoneTakeOverTime[z] >= 120)
                {
                    
GangZoneStopFlashForAll(ZoneInfo[z][z_id]);
                    
KillTimer(timer1[playerid]);
                    
GangZoneShowForAll(ZoneInfo[z][z_id], GetTeamColor(ZoneTakeOverTeam[z]));
                    
ZoneInfo[z][z_team] = ZoneTakeOverTeam[z];
                    for(new 
i=0i<MAX_PLAYERSi++)
                    {
                        if(
IsPlayerConnected(i))
                        {
                            if(
GetPlayerZone(i) == && gTeam[i] == ZoneTakeOverTeam[z])
                            {
                                
SetPlayerScore(iGetPlayerScore(i) + 2);
                                
pInfo[i][pKills] += 2;
                                
GameTextForPlayer(i"~g~Turf ~r~taken over~n~~b~~h~+2 score"60003);
                            }
                        }
                    }
                    
ZoneTakeOverTeam[z] = -1;
                    
ZoneTakeOverTime[z] = 0;
                }
            }
            else
            {
                
ZoneTakeOverTeam[z] = -1;
                
GangZoneStopFlashForAll(ZoneInfo[z][z_id]);
                
ZoneTakeOverTime[z] = 0;
            }
        }
    }
}
public 
gangzonetimer(playerid)
{
    
count--;
    if(
count==0)
    {
        
GameTextForPlayer(playerid"~b~Gang Zone War Ended."10000);
        
KillTimer(timer1[playerid]);
        }else{
            new 
string[120];
            
format(stringsizeof(string), "~b~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~%d"count);
            
GameTextForPlayer(playeridstring10003);
            return 
1;
        }
    return 
1;

Reply


Messages In This Thread
need help - by lanix - 12.08.2015, 13:03
Re: need help - by jlalt - 12.08.2015, 13:05
Re: need help - by lanix - 12.08.2015, 13:11
Re: need help - by jlalt - 12.08.2015, 13:23
Re: need help - by lanix - 12.08.2015, 14:00
Re: need help - by jlalt - 12.08.2015, 14:04
Re: need help - by lanix - 12.08.2015, 14:10
Re: need help - by jlalt - 12.08.2015, 19:06
Re: need help - by lanix - 12.08.2015, 20:03
Re: need help - by jlalt - 12.08.2015, 20:41

Forum Jump:


Users browsing this thread: 1 Guest(s)