FreezeCount
#1

The FreezeCount dont work....

Look the script:

pawn Код:
public Tre(playerid)
{

    if(FreezeCount[playerid]==1)
    {
        TogglePlayerControllable(playerid, false);
        return 1;
    }
    GameTextForAll("~y~3",1000,3);
    return 1;
}

public Due()
{
    GameTextForAll("~p~2",1000,3);
    return 1;
}

public Uno()
{
    GameTextForAll("~r~1",1000,3);
    return 1;
}

public Via(playerid)
{
   
    if(FreezeCount[playerid]==1)
    {
        TogglePlayerControllable(playerid, true);
        FreezeCount[playerid]=0;
        return 1;
    }
    GameTextForAll("~g~!!!Go!!!",3000,3);
    return 1;
}
Reply
#2

Help me
Reply
#3

And where do you call these?
If you write simple functions, I recommend "stock function(param1,param2[])".
Do you have /countdown or wut?
Reply
#4

Hello!

Can you please show us the full code?
Reply
#5

pawn Код:
/*Count*/
/*CountFreeze*/
new FreezeCount[MAX_PLAYERS];


CMD:count(playerid, params[])
{
    SetTimer("Tre", 1000, 0);
    SetTimer("Due", 2000, 0);
    SetTimer("Uno", 3000, 0);
    SetTimer("Via", 4000, 0);
    return 1;
}

/*FreezeCount*/
CMD:fc(playerid, params[])
    return cmd_freezecount(playerid, params);

CMD:freezecount(playerid, params[])
{
    if(Joined[playerid] == true) return SendClientMessage(playerid, WHITE, "You can't use this command! Use "GREENHEX"/er (/exitrace) "WHITEHEX"for use this command!");
    FreezeCount[playerid]=1;
    return 1;
}


public Tre(playerid)
{

    if(FreezeCount[playerid]==1)
    {
        TogglePlayerControllable(playerid, false);
        return 1;
    }
    GameTextForAll("~y~3",1000,3);
    return 1;
}

public Due()
{
    GameTextForAll("~p~2",1000,3);
    return 1;
}

public Uno()
{
    GameTextForAll("~r~1",1000,3);
    return 1;
}

public Via(playerid)
{
   
    if(FreezeCount[playerid]==1)
    {
        TogglePlayerControllable(playerid, true);
        FreezeCount[playerid]=0;
        return 1;
    }
    GameTextForAll("~g~!!!Go!!!",3000,3);
    return 1;
}

This is all code


The countdown work but the freezecount dont work...
Reply
#6

Many pople can help me?
Reply
#7

/freezecount does nothing.. type /count and that will work (based on your code).
Reply
#8

But this dont work
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)