[HELP] Playerid and killerid
#1

Hello,

I'm busy with my own DM script, but I'm stuck with something.
(I'm a quite noob but can't find it in the WIKI).

I want the following.

The killed player gets -1 score.
The player who killed a player gets +1 score.

My "killed player gets -1 score" works, but my "player who killed a player gets +1 score" don't work.
I need to make a thing that gets the playerid of the killerid, I think?

Everyone who helps me get /credits in my server and +REP.

My script is as follows:

pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
    ResetPlayerWeapons(playerid);
    SetPlayerScore(playerid,-1);
    //SetPlayerScore(killerid,+1);
    return 1;
}
Reply


Messages In This Thread
[HELP] Playerid and killerid - by sidney123 - 15.04.2012, 15:47
Re: [HELP] Playerid and killerid - by ViniBorn - 15.04.2012, 15:55
Re: [HELP] Playerid and killerid - by sidney123 - 15.04.2012, 15:57
Re: [HELP] Playerid and killerid - by Kaczmi - 15.04.2012, 16:06

Forum Jump:


Users browsing this thread: 1 Guest(s)