Little Help
#1

Hello everybody.In my Admin System i want to add to command stats kills and deaths and i am asking if this will work:
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    PlayerInfo[playerid][pKills] ++;
    PlayerInfo[playerid][pDeaths] ++;
    return 1;
}
Reply
#2

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    PlayerInfo[playerid][pDeaths]++;
    if(IsPlayerConnected(killerid) && killerid != INVALID_PLAYER_ID) {
        PlayerInfo[killerid][pKills]++;
    }
    return 1;
}
Reply
#3

Yeah.
Or you can be use += 1 too.
Example:

pawn Код:
PlayerInfo[playerid][pKills] += 1;
PlayerInfo[playerid][pDeaths] += 1;
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)