27.06.2009, 19:21
Hey I got a question/problem and I really need your help 
I would like to make something similar to the Ranks...I mean you have to kill e.g 5 people to get rank 2 and 10 people to get rank 3 and so on... I was wondering maybe OnPlayerDeath then killerid and give him a rank, I am not sure that's why I am asking you cos' Im confused.
See in the first bit of code, there is something like GetPlayerName(killerid, then I would like to set up a +1 kill, so when he reaches up to 10 kills he gets Rank Level 2, Rank name e.g Rocky or something lol 
I would really like to get this code, it's very important for me
Thanks in advance !

I would like to make something similar to the Ranks...I mean you have to kill e.g 5 people to get rank 2 and 10 people to get rank 3 and so on... I was wondering maybe OnPlayerDeath then killerid and give him a rank, I am not sure that's why I am asking you cos' Im confused.
pawn Код:
public OnPlayerDeath(playerid, killerid, reason)
{
if(killerid == INVALID_PLAYER_ID) {
SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
} else {
if(gTeam[killerid] != gTeam[playerid]) {
SendDeathMessage(killerid,playerid,reason);
SetPlayerScore(killerid,GetPlayerScore(killerid)+1);
GivePlayerMoney(killerid, 1000);
}
else {
new warning[256];
format(warning, sizeof(warning), "Do not kill your Team-Mates ! YOU GOT PUNISHED FOR TEAM KILLING !");
SendClientMessage(killerid, 0xFFFF00AA, warning);
SendDeathMessage(killerid,playerid,reason);
GivePlayerMoney(killerid, -1000);
SetPlayerScore(killerid, GetPlayerScore(killerid) - 1);
}
return 1;
}

I would really like to get this code, it's very important for me
