13.10.2011, 20:43
Hey, I'm having an issue with my score, I made it so when a player dies there score gets added +1, but it doesnt show under TAB. but it saves to the player file, any help? OnPlayerDeath
PHP код:
SendClientMessage(playerid,COLOR_RED,"You've been killed and lost 500$.");
GivePlayerMoney(playerid,-500);
PlayerInfo[killerid][pKills]++;
PlayerInfo[playerid][pDeaths]++;
PlayerInfo[killerid][pKillPoints]++;
PlayerInfo[playerid][pKillPoints]--;
PlayerInfo[killerid][pScore]++;
PlayerInfo[playerid][pScore]--;
if(killerid != INVALID_PLAYER_ID)
GivePlayerMoney(killerid, 500);
SendClientMessage(killerid,COLOR_GREEN,"You've killed an enemy and earned 500$.");
SendDeathMessage(killerid, playerid, reason);
if(gTeam[killerid] == gTeam[playerid]) {
new string[128];
format(string,sizeof(string),"%s has just killed their teammate, Please warn/kick them.");
}