01.07.2014, 16:47
pawn Код:
if(killerid != INVALID_PLAYER_ID)
{
new kstring[128], playername[MAX_PLAYER_NAME];
GetPlayerName(playerid, playername, sizeof(playername));
format(kstring, sizeof(kstring), "~b~Haha Ya 0wned %s", playername);
GameTextForPlayer(killerid, kstring, 4000, 3);
GetPlayerName(killerid, playername, sizeof(playername));
format(pstring, sizeof(pstring), "~r~:( you got 0wned by %s", playername);
GameTextForPlayer(playerid, pstring, 4000, 3);
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
SetPlayerScore(playerid, GetPlayerScore(playerid) + 1); //Why do you give 'playerid' 1 score?
PlayerInfo[playerid][Deaths]++;
PlayerInfo[killerid][Kills]++;
}