(Difficult Question)
#2

hm.. maybe you give this snipped a try:
pawn Код:
public BASE_CHECK(BASE_CHECK_ID)
{
    for(new i; i<GetMaxPlayers(); i++)
    {
        if(!IsPlayerInAnyVehicle(i))
        {
            if(BASE_CHECK_IsPlayerInBASE(i,BASE_GASSTATION))
            {
                if(gTeam[i]==0) return SendClientMessagel(i,COLOR_RED,"VIEWER Can't Conquer Bases!");
                if(CONQUERED_BASE_GASSTATION==gTeam[i]) return SendClientMessage(i,COLOR_RED,"Already Conquered!");

//              CONQUERED_BASE_BAUPLATZ=gTeam[i];//der bauplatz ist nie benutzt. habs mal durch gasstation ersetzt. stimmts so?
                CONQUERED_BASE_GASSTATION=gTeam[i];
                new string[64];
                format(string,sizeof(string),"CONQUERED_BASE_GASSTATION by Team %d",gTeam[i]);
                SendClientMessageToAll(COLOR_RED,string);
                Update3DTextLabelText(TEXTLABEL_GASSTATION ,COLOR_BLUE, "GASSTATION");
                return 1;
            }
        }
    }
    return 1;
}
...and as usual, some algorithmic changes 4 free inclusive
Reply


Messages In This Thread
(Difficult Question) - by nesty - 28.01.2010, 20:01
Re: (Difficult Question) - by Babul - 28.01.2010, 20:37
Re: (Difficult Question) - by nesty - 28.01.2010, 21:14
Re: (Difficult Question) - by Babul - 28.01.2010, 23:05
Re: (Difficult Question) - by nesty - 29.01.2010, 20:40
Re: (Difficult Question) - by adi360 - 29.01.2010, 20:53
Re: (Difficult Question) - by nesty - 29.01.2010, 21:01

Forum Jump:


Users browsing this thread: 1 Guest(s)