10.08.2013, 22:29
Add
pawn Код:
PlayerInfo[killerid][pKills]++; // Assuming you're registering kills & deaths
PlayerInfo[playerid][Deaths]++; // Assuming you' registering kills & deaths
PlayerInfo[killerid][pScores]++; // Add 1 to playerscore
SendClientMessage(killerid, COLOR_YELLOW,"You have received $500 for taking out another player!"); // optional money info message to killer
SendClientMessage(playerid, COLOR_YELLOW,"You have lost $100 for dying."); // optional money info msg to target
SetPlayerScore(killerid, GetPlayerScore(killerid)+1); // Set player score +1 on TAB
SendDeathMessage(killerid,playerid,reason); // Show kill on kill list