[Ajuda] Comandos /Contar..
#1

Queria pedi uma ajuda, Alguem afim de ajudar teria como alterar esse comando pra contar atй 3 ae vem o GO, ele sу ta contando GO, Tipo, Nгo aparece 1 2 3, Sу fica nada, dps de 3 Segundos aparece GO, Comandos & Forward Abaixo..

pawn Код:
CMD:contar(playerid)
{
    if(AFKP[playerid] == true) return SendClientMessage(playerid, Cinza, "[ERRO] Vocк estб ausente.");
    if(Logado[playerid] == false) return SendClientMessage(playerid, Cinza, "[ERRO] Vocк deve logar primeiro.");
    SetTimer("ContandoGo", 3000, false);
    new String[100];
    format(String, sizeof(String), "{FF0000}Contando..{FFFFFF} {00FFFF}%s{FFFFFF} Comeзou uma contagem...", rNome(playerid));
    SendClientMessageToAll(-1, String);
    return 1;
}

forward ContandoGo();
public ContandoGo()
{
    for(new r; r<MAX_PLAYERS; r++)
    {
        if(IsPlayerConnected(r))
        {
            GameTextForPlayer(r, "~y~]~w~GO! ~r~~h~GO! ~w~GO!~y~]", 2000, 3);
            PlayerPlaySound(r, 1056, 0.0, 0.0, 0.0);
        }
    }
    return 1;
}
Reply
#2

isso q vc ta querendo ?

pawn Код:
if(strcmp(cmd, "/1", true) == 0)
    {
        if (PlayerInfo[playerid][pAdmin] >= 3)
        {
            GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
            format(string, sizeof(string), "~p~| ~r~1 ~p~|");
            GameTextForAll(string, 1000, 5);
        }
        return 1;
    }
    if(strcmp(cmd, "/2", true) == 0)
    {
        if (PlayerInfo[playerid][pAdmin] >= 3)
        {
            GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
            format(string, sizeof(string), "~p~| ~r~2 ~p~|");
            GameTextForAll(string, 1000, 5);
        }
        return 1;
    }
    if(strcmp(cmd, "/3", true) == 0)
    {
        if (PlayerInfo[playerid][pAdmin] >= 3)
        {
            GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
            format(string, sizeof(string), "~p~| ~y~3 ~p~|");
            GameTextForAll(string, 1000, 5);
        }
        return 1;
    }
    if(strcmp(cmd, "/go", true) == 0 || strcmp(cmd, "/4", true) == 0)
    {
        if (PlayerInfo[playerid][pAdmin] >= 3)
        {
            GetPlayerName(playerid, playername, MAX_PLAYER_NAME);
            format(string, sizeof(string), "~p~| ~g~Go Go Go ~p~|");
            GameTextForAll(string, 1000, 5);
        }
        return 1;
    }
Reply
#3

Nгo..
Quero aquele comando lб que postei, ele contando atй 3..
Ele sу conta GO, quero que ele conte, 1 dps 2 dps 3 dps GO GO GO
Jб ele tб contando sу GO.
Reply
#4

pawn Код:
CMD:contar(playerid)
{
    if(AFKP[playerid] == true) return SendClientMessage(playerid, Cinza, "[ERRO] Voc? est? ausente.");
    if(Logado[playerid] == false) return SendClientMessage(playerid, Cinza, "[ERRO] Voc? deve logar primeiro.");
    SetTimer("ContandoGo", 3000, false);
    new String[100];
    format(String, sizeof(String), "{FF0000}Contando..{FFFFFF} {00FFFF}%s{FFFFFF} Come?ou uma contagem...", rNome(playerid));
    SendClientMessageToAll(-1, String);
    return 1;
}

forward ContandoGo();
public ContandoGo()
{
    for(new r; r<MAX_PLAYERS; r++)
    {
        if(IsPlayerConnected(r))
        {
            GameTextForPlayer(r, "~y~3", 2000, 3);
            PlayerPlaySound(r, 1056, 0.0, 0.0, 0.0);
            GameTextForPlayer(r, "~y~2", 2000, 3);
            PlayerPlaySound(r, 1056, 0.0, 0.0, 0.0);
            GameTextForPlayer(r, "~y~1", 2000, 3);
            PlayerPlaySound(r, 1056, 0.0, 0.0, 0.0);
            GameTextForPlayer(r, "~y~]~w~GO! ~r~~h~GO! ~w~GO!~y~]", 2000, 3);
            PlayerPlaySound(r, 1056, 0.0, 0.0, 0.0);
        }
    }
    return 1;
}
Reply
#5

Sti continua do msm geito

):
Reply
#6

Você só quer esse Cod mesmo? Pois posso lhe passar um Novo Code
Reply
#7

Ok, Se fornecer fonte igual posiзгo igual agradeзo (:
Reply
#8

Bom, Uso esse FilterScript - Code no meu Servidor, E não vejo problema nele, Caso dar um Confronto entre esse Comando (Original Acima) troque-o para um Qualquer, E coloque esse Code no seu GameMode:

pawn Код:
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    #include <a_samp>
    #define FILTERSCRIPT
    #if defined FILTERSCRIPT
    #define COLOR_LIGHTBLUE 0x33CCFFAA
    forward count3();
    forward count2();
    forward count1();
    forward countgo();
    new bool:a;
    new Float:X, Float:Y, Float:Z;
    #else
    #endif
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    public OnPlayerCommandText(playerid, cmdtext[])
    {
       if(strcmp(cmdtext,"/contar",true) == 0) {
       new pName[30];
       new string[256];
       if (a == false)
       {
       a = true;
       GetPlayerName(playerid, pName, 30);
       format(string, 280, "*** %s started count.", pName);
       SendClientMessageToAll(COLOR_LIGHTBLUE, string);
       for(new i; i < MAX_PLAYERS; i++) {
       GameTextForPlayer(i, "~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~g~-~y~ 3 ~g~-",1000,3);
       GetPlayerPos(i,X,Y,Z);
       }
       SetTimer("count3",1000,0);
       SetTimer("count2",2000,0);
       SetTimer("count1",3000,0);
       SetTimer("countgo",3500,0);

       }
       else SendClientMessage(playerid, 0xFF9900AA, "Its allready started!");
       return 1;
       }

       return 0;
    }
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    public count3()
    {
       for(new i; i < MAX_PLAYERS; i++) {
       GameTextForPlayer(i,"~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~g~-~y~ 3 ~g~-",1000,3);
       GetPlayerPos(i,X,Y,Z);
       }
    }
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    public count2()
    {
       for(new i; i < MAX_PLAYERS; i++) {
       GameTextForPlayer(i,"~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~g~-~y~ 2 ~g~-",1000,3);
       GetPlayerPos(i,X,Y,Z);
       }
    }
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    public count1()
    {
       for(new i; i < MAX_PLAYERS; i++) {
       GetPlayerPos(i,X,Y,Z);
       GameTextForPlayer(i,"~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~g~-~y~]~g~-~g~ 1 ~g~-~y~]~g~-",1000,3);
       PlayerPlaySound(i,1057,X,Y,Z);
       }
    }
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
    public countgo()
    {
       for(new i; i < MAX_PLAYERS; i++) {
       GetPlayerPos(i,X,Y,Z);
       GameTextForPlayer(i,"~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~n~~g~-~y~]~g~-~g~ GO GO GO ~g~-~y~]~g~-",1000,3);
       PlayerPlaySound(i,1057,X,Y,Z);
       }
    }
//=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Reply
#9

Jб uso ele rs'
Mais queria meu original, enfim..
Entгo vo continuar usando ele, vlw por tentar ajudar +REP Pelo esforзo..
Reply
#10

Use static & Timer + KillTimer ...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)