(Difficult Question)
#1

hi, everyone I try to script a GM with bases which can conquered! And nearly everything is running perfectly but there is one problem because I wanna make a basesystem where there is a certain time that runs down (countdown) and after this countdown the following variables will set.
pawn Код:
CONQUERED_BASE_GASSTATION = 1;// for Team 1
CONQUERED_BASE_GASSTATION = 2;// for Team 2
here my code:
pawn Код:
new CONQUERED_BASE_GASSTATION;
pawn Код:
SetTimer("BASE_CHECK", 100, true);
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] == TEAM_1)
        {
            if((CONQUERED_BASE_GASSTATION==0)||(CONQUERED_BASE_GASSTATION==2))
                {
                CONQUERED_BASE_BAUPLATZ = 1;
                SendClientMessageToAll(COLOR_RED,"CONQUERED_BASE_GASSTATION by Team 1");
                Update3DTextLabelText(TEXTLABEL_GASSTATION ,COLOR_BLUE, "GASSTATION");
                }
            else if(CONQUERED_BASE_GASSTATION ==1)
                {
                SendClientMessage(i,COLOR_RED,"Already Conquered!");
                }
        }
        else if(gTeam[i] == TEAM_2)
        {
            if((CONQUERED_BASE_GASSTATION ==0)||(CONQUERED_BASE_GASSTATION ==1))
                {
                CONQUERED_BASE_GASSTATION = 2;
                SendClientMessageToAll(COLOR_RED,"CONQUERED_BASE_GASSTATION by Team 2");
                Update3DTextLabelText(TEXTLABEL_GASSTATION ,COLOR_RED, "GASSTATION");
                }
            else if(CONQUERED_BASE_GASSTATION ==2)
                {
                SendClientMessage(i,COLOR_RED,"Already Conquered!");
                }
        }
        else SendClientMessagel(i,COLOR_RED,"VIEWER Can't Conquer Bases!");
    }
    else
    {
    }
}
}
}
ok hope someone can help me
It's a basal question because if i fix this problem i think my GM is finished.
I know that isn't a simple question so i hope anyone will take a look at this
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: 2 Guest(s)