03.06.2014, 17:28
(
Последний раз редактировалось VenomMancer; 22.06.2014 в 05:19.
)
public OnPlayerDeath(playerid, killerid, reason)
{
SendDeathMessage(killerid, playerid, reason);
pInfo[playerid][Spawned] = 0;
onjob[playerid] = 0;
/*-------| Most wanted |------*/
pInfo[killerid][MostKill] ++;
pInfo[playerid][MostKill] = 0;
MostStar(playerid);
MostStar(killerid);
/*-----------------------------*/
pInfo[playerid][Deaths]++;
// gangs
if(pInfo[killerid][gID] != -1 && pInfo[killerid][gID] != pInfo[playerid][gID])
{
gInfo[pInfo[killerid][gID]][gScore]++;
}
if(IsPlayerConnected(killerid) && killerid != INVALID_PLAYER_ID)
{
pInfo[killerid][Kills]++;
}
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); // +1 Score to KillerID
GivePlayerMoneyEx(killerid, 15000); // + 100 to the killer
return 1;
}