[HELP] OnPlayerDeath
#2

pawn Код:
if(killerid != 255)
{

    new killer[24];
    GetPlayerName(killerid, killer, 24);
    format(string, sizeof(string), "%s kills %s [%s] ",killer ,name ,deathreason);
   
    if(DMArena[playerid] && DMArena[killerid])
    {
        GivePlayerMoney(killerid, 3000);
        GivePlayerMoney(playerid, -3000);

        if(AccInfo[killerid][LoggedIn])
        {
            new KScore;
            KScore = GetPlayerScore(killerid);
            SetPlayerScore(killerid, KScore +200);
        }
        if(AccInfo[playerid][LoggedIn] == 1)
        {
            new PScore;
            PScore = GetPlayerScore(playerid);
            SetPlayerScore(killerid, PScore +200);
        }
    }
}
I'm a little bit confused in parts. You add onto the killer's score if he's logged in and then again if the player is logged in? Also, I didn't understand the bottom at all so it's not included.
Reply


Messages In This Thread
[HELP] OnPlayerDeath - by Yaszine - 14.08.2011, 02:02
Re: [HELP] OnPlayerDeath - by Backwardsman97 - 14.08.2011, 02:30
Re : [HELP] OnPlayerDeath - by Yaszine - 14.08.2011, 18:30
Re : [HELP] OnPlayerDeath - by Yaszine - 15.08.2011, 02:25
Re: [HELP] OnPlayerDeath - by Backwardsman97 - 15.08.2011, 05:53

Forum Jump:


Users browsing this thread: 1 Guest(s)