13.07.2011, 03:44
How do I make it so the player who died looses 1 Score and the player who killed them gains 1 score?
public OnPlayerDeath(playerid,killerid,reason);
{
SetPlayerScore(playerid,GetPlayerScore(playerid) - 1);
SetPlayerScore(killerid,GetPlayerScore(killerid) + 1);
return 1;
}
SetPlayerScore(playerid)--; SetPlayerScore(killerid)++;
public OnPlayerDeath(playerid,killerid,reason);
{
if(GetPlayerScore(playerid) != 0) SetPlayerScore(playerid,GetPlayerScore(playerid) - 1);
SetPlayerScore(killerid,GetPlayerScore(killerid) + 1);
GivePlayerMoney(killerid,GetPlayerMoney(playerid) / 2);
GivePlayerMoney(playerid,-GetPlayerMoney(playerid) / 2);
return 1;
}