[Ajuda] /kill nao aparece nos frags
#1

dEPOIS QUE ADICIONEI o comando abaixo no meu gm, quando o player usa /kill nao aparece nos frag que ele se matou...
codigo:
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    DropWeapons(playerid);
    GivePlayerMoney(killerid, 20000);
    Roubando[playerid] = 0;
    static Matou[MAX_PLAYER_NAME], Morreu[MAX_PLAYER_NAME], sStr[90];
    GetPlayerName(killerid, Matou, sizeof(Matou));
    GetPlayerName(playerid, Morreu, sizeof(Morreu));
    format(sStr, sizeof(sStr), "[NOTНCIAS]: %s[%d] matou o ladrгo %s[%d].", Matou, killerid, Morreu, playerid);
    if(Roubando[playerid] == 1)
    {
        static Ladrao[MAX_PLAYER_NAME], sStrs[100];
        GetPlayerName(playerid, Ladrao, sizeof(Ladrao));
        format(sStrs, sizeof(sStrs), "[NOTНCIAS]: %s[%d] morreu e o roubo ao banco foi cancelado!", Ladrao, playerid);
        SendClientMessageToAll( COR_USOCORRETO, sStrs);
        Roubando[playerid] = 0;
        return 1;
    }
    if(Roubando[killerid] == 1)
    {
        SendClientMessage(playerid, COR_USOCORRETO, "[CB]: Vocк matou o ladrгo!");
        Roubando[killerid] = 0;
        return 1;
    }

    DropWeapons(playerid);
    GivePlayerMoney(killerid, 20000);
    Roubandosubway[playerid] = 0;
    format(sStr, sizeof(sStr), "[NOTНCIAS]: %s[%d] matou o ladrгo %s[%d].", Matou, killerid, Morreu, playerid);
    if(Roubandosubway[playerid] == 1)
    {
        static Ladraosubway[MAX_PLAYER_NAME], sStrs[100];
        GetPlayerName(playerid, Ladraosubway, sizeof(Ladraosubway));
        format(sStrs, sizeof(sStrs), "[NOTНCIAS]: %s[%d] morreu e o roubo a Subway foi cancelado!", Ladraosubway, playerid);
        SendClientMessageToAll( COR_USOCORRETO, sStrs);
        Roubandosubway[playerid] = 0;
        return 1;
    }
    if(Roubandosubway[killerid] == 1)
    {
        SendClientMessage(playerid, COR_USOCORRETO, "[CB]: Vocк matou o ladrгo!");
        Roubandosubway[killerid] = 0;
        return 1;
    }

    DropWeapons(playerid);
    GivePlayerMoney(killerid, 20000);
    Roubandomercado[playerid] = 0;
    format(sStr, sizeof(sStr), "[NOTНCIAS]: %s[%d] matou o ladrгo %s[%d].", Matou, killerid, Morreu, playerid);
    if(Roubandomercado[playerid] == 1)
    {
        static Ladraomercado[MAX_PLAYER_NAME], sStrs[100];
        GetPlayerName(playerid, Ladraomercado, sizeof(Ladraomercado));
        format(sStrs, sizeof(sStrs), "[NOTНCIAS]: %s[%d] morreu e o roubo ao Supermercado foi cancelado!", Ladraomercado, playerid);
        SendClientMessageToAll( COR_USOCORRETO, sStrs);
        Roubandomercado[playerid] = 0;
        return 1;
    }
    if(Roubandomercado[killerid] == 1)
    {
        SendClientMessage(playerid, COR_USOCORRETO, "[CB]: Vocк matou o ladrгo!");
        Roubandomercado[killerid] = 0;
        return 1;
    }
Reply


Messages In This Thread
/kill nao aparece nos frags - by SeckSeck - 22.01.2015, 15:36
Re: /kill nao aparece nos frags - by #Luca[S]. - 22.01.2015, 15:49
Respuesta: Re: /kill nao aparece nos frags - by SeckSeck - 22.01.2015, 18:15
Re: /kill nao aparece nos frags - by [BOPE]Seu._.Madruga - 22.01.2015, 18:30
Respuesta: /kill nao aparece nos frags - by SeckSeck - 23.01.2015, 21:50
Respuesta: /kill nao aparece nos frags - by SeckSeck - 23.01.2015, 23:18
Respuesta: /kill nao aparece nos frags - by SeckSeck - 25.01.2015, 00:28
Re: /kill nao aparece nos frags - by Caiton - 25.01.2015, 00:31
Respuesta: Re: /kill nao aparece nos frags - by SeckSeck - 25.01.2015, 00:35
Re: /kill nao aparece nos frags - by JonathanFeitosa - 25.01.2015, 00:54

Forum Jump:


Users browsing this thread: 1 Guest(s)