11.11.2013, 11:52
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(playerid != INVALID_PLAYER_ID)
{
pStats[playerid][deaths]++;
}
if(killerid != INVALID_PLAYER_ID && IsPlayerConnected(killerid))
{
pStats[killerid][score]++;
pStats[killerid][money]++;
GivePlayerMoney(killerid, 1);
SetPlayerScore(killerid, pStats[killerid][score]);
}
return 1;
}


