[HELP] OnPlayerDeath
#1

Hi all

I have this script:

pawn Код:
new killer[MAX_PLAYER_NAME];
    GetPlayerName(killerid, killer, sizeof(killer));
    if (strlen(deathreason) > 0)
    {
        format(string, sizeof(string), "%s kills %s [%s] ",killer ,name ,deathreason);
       
        if(DMArena[playerid]==1 && DMArena[killerid]==1)
        {
            GivePlayerMoney(killerid, 3000);
            GivePlayerMoney(playerid, -3000);
           
            if(AccInfo[killerid][LoggedIn] == 1)
            {
                new KScore;
                KScore = GetPlayerScore(killerid);
                SetPlayerScore(killerid, KScore +200);
            }
            else
            {
            }
            if(AccInfo[playerid][LoggedIn] == 1)
            {
                new PScore;
                PScore = GetPlayerScore(playerid);
                SetPlayerScore(killerid, PScore +200);
            }
        }
        else
        {
        }
       
    }
    else
    {
        format(string, sizeof(string), "%s kills %s", killer, name);
    }
        }
        SendClientMessageToAll(RED, string);
        {
    }

But, when Player and Killer in DM .. the money/score system dont work

Can some one fix that, please

[I have the rest of this script, But this is where the problem is ]

Sorry for my bad English :$
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: 2 Guest(s)