15.04.2012, 15:47
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:
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;
}