[Pedido] Mata 10 Ganha UP Level
#4

pawn Код:
//*************************** Inicio do GM **********************
new Score[MAX_PLAYERS], Matou[MAX_PLAYERS];

//*************************** OnPlayerDeath ********************
    Matou[killerid] ++;
    if(Matou[killerid] >= 10)
    {
        SendClientMessage(killerid, 0xFFFFFFFF, "Vocк subiu de nнvel o/");
        Score[killerid] += 2;
        Matou[killerid] = 0;
        return 1;
    }
//*************************** OnPlayerCommandText ********************
    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, Score[PlayerB]);
        SendClientMessage(playerid, Branco, string);
        return 1;
    }
Й apenas uma base, acredito que seja isso que vocк estб procurando, edite da forma que achar melhor.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)