[Pedido] Mata 10 Ganha UP Level
#6

Quote:
Originally Posted by [Red]Maninho
Посмотреть сообщение
Josma й Isso Sim Mais Veja


No Meu +1 Up Level Ta Assim, Sou Meio Novato Pawno
Intao Como Faz Para Fazer Esse Seu Comando Ai
o UP Ser Por Base Desse
pawn Код:
//**************** Troca o script no OnPlayerDeath antigo por este *************************
    Matou[killerid] ++;
    if(Matou[killerid] >= 10)
    {
        SendClientMessage(killerid, 0xFFFFFFFF, "Vocк subiu de nнvel o/");
        Score[killerid] += 1;
        dini_IntSet(file, "Level", dini_Int(file, "Level")+1);
        Matou[killerid] = 0;
        return 1;
    }
//************************* Troca o comando antigo por este ********************************
    if(strcmp(cmd, "/score", true) == 0)
    {
        #define Branco 0xFFFFFFFF
        new tmp[20], PlayerB, string[30], Manolo[MAX_PLAYER_NAME];
        tmp = strtok(cmdtext, idx);
        if(!strlen(tmp)) return SendClientMessage(playerid, Branco, "Uso correto: /Score [id]");
        PlayerB = strval(tmp);
        GetPlayerName(PlayerB, Manolo, sizeof(Manolo));
        format(string, sizeof(string), "%s: %d", Manolo, dini_Int(file, "Level"));
        SendClientMessage(playerid, Branco, string);
        return 1;
    }
Desta forma o Score[playerid] se torna desnecessбrio entгo apague-o se quiser.
Espero que funcione.
Aconselho vocк a criar uma public para carregar e salvar Dados.
Reply


Messages In This Thread
[Pedido] Mata 10 Ganha UP Level - by [Red]Maninho - 16.07.2011, 19:06
Re: [Pedido] Mata 10 Ganha UP Level - by Dark.Angel - 16.07.2011, 19:17
Respuesta: [Pedido] Mata 10 Ganha UP Level - by [Red]Maninho - 16.07.2011, 19:53
Re: [Pedido] Mata 10 Ganha UP Level - by Josma_cmd - 16.07.2011, 20:06
Respuesta: [Pedido] Mata 10 Ganha UP Level - by [Red]Maninho - 16.07.2011, 20:38
Re: Respuesta: [Pedido] Mata 10 Ganha UP Level - by Josma_cmd - 16.07.2011, 21:02
Respuesta: [Pedido] Mata 10 Ganha UP Level - by [Red]Maninho - 16.07.2011, 21:19
Respuesta: [Pedido] Mata 10 Ganha UP Level - by [Red]Maninho - 16.07.2011, 21:32
Re: [Pedido] Mata 10 Ganha UP Level - by Devastador - 16.07.2011, 21:36
Re: Respuesta: [Pedido] Mata 10 Ganha UP Level - by Josma_cmd - 16.07.2011, 23:14

Forum Jump:


Users browsing this thread: 1 Guest(s)