[Ajuda] Chat Kill
#10

Que tal agora ? Calculei o tamanho da STR e adicionei +24 (nome do player) +1.. Tem mais algo que se de pra optimizar ?

pawn Код:
new pSpree[MAX_PLAYERS];

public OnPlayerDeath(playerid, killerid, reason)
{
    pSpree[playerid] = 0;
    pSpree[killerid]++;
    if(pSpree[killerid] >= 5)
    {
        new pName[24], Str[87];
        GetPlayerName(killerid, pName, 24);
        if(pSpree[killerid] == 5)       format(Str, 87, "ATENЗГO: O Player %s jб mandou 5 players pra vala sem morrer.", pName);
        if(pSpree[killerid] == 10)      format(Str, 87, "ATENЗГO: O Player %s jб mandou 10 players pra vala sem morrer.", pName);
        SendClientMessageToAll(-1, Str);

    }
    return 1;
}
Reply


Messages In This Thread
Chat Kill - by Catchorro - 01.11.2013, 17:13
Re: Chat Kill - by iDreak - 01.11.2013, 17:18
Re: Chat Kill - by zSuYaNw - 01.11.2013, 17:21
Re: Chat Kill - by Catchorro - 01.11.2013, 17:21
Re: Chat Kill - by focaximubh - 01.11.2013, 17:21
Re: Chat Kill - by Ph0ton - 01.11.2013, 17:47
Re: Chat Kill - by zSuYaNw - 01.11.2013, 18:05
Re: Chat Kill - by Ph0ton - 01.11.2013, 18:20
Re: Chat Kill - by zSuYaNw - 01.11.2013, 18:59
Re: Chat Kill - by Ph0ton - 01.11.2013, 19:48

Forum Jump:


Users browsing this thread: 1 Guest(s)