05.08.2013, 22:50
I have updated it but for some reason it's not updating the deaths or kills, still... It also removes $100 from the player who dies rather than the $50 set and doesn't add $100 to the killer.
Код:
public OnPlayerDeath(playerid, killerid, reason) { SendDeathMessage(killerid, playerid, reason); if(killerid != INVALID_PLAYER_ID) // Killer Shit { pInfo[killerid][pKills]++; pInfo[killerid][pScore]++; pInfo[killerid][pMoney] += 100; SetPlayerScore(killerid, pInfo[killerid][pScore]); } //Dead Shit pInfo[playerid][pDeaths]++; pInfo[playerid][pMoney] -= 50; return 1; }