[Ajuda] Matou e Morreu
#4

Quote:
Originally Posted by Dr_Pawno
Посмотреть сообщение
pawn Код:
new pKills[MAX_PLAYERS],
    pDeaths[MAX_PLAYERS];

public OnPlayerDeath(playerid, killerid, reason)
{
    if(killerid != INVALID_PLAYER_ID
    && IsPlayerConnected(killerid))
        pKills[killerid] ++;

    pDeaths[playerid] ++;
    ShowKills(playerid);
    return 1;
}

stock ShowKills(playerid)
{
    new String[128];
    format(String, 128, "Vocк tem %d Kills e %d Deaths.", pKills[playerid], pDeaths[playerid]);
    SendClientMessage(playerid, 0xFFFFFFFF, String);  
    return;
}
Codigo muito simples, pKills guarda quantas pessoas o Jogador matou, pDeaths guarda quantas vezes o jogador morreu.
ShowKills apenas envia a mensagem para o jogador.
Aqui deu viw, Mais fica salvo os status que ele matou e morreu
Reply


Messages In This Thread
Matou e Morreu - by powerths - 09.10.2013, 21:50
Respuesta: Matou e Morreu - by ipsBruno - 09.10.2013, 21:53
Re: Matou e Morreu - by Dr_Pawno - 09.10.2013, 21:57
Re: Matou e Morreu - by powerths - 09.10.2013, 22:32
Re: Matou e Morreu - by SkullFire - 09.10.2013, 22:39
Re: Matou e Morreu - by powerths - 09.10.2013, 23:02
Re: Matou e Morreu - by arakuta - 09.10.2013, 23:08

Forum Jump:


Users browsing this thread: 1 Guest(s)