27.04.2012, 14:15
You are not adapting properly
pawn Код:
public OnPlayerDeath(playerid, killerid, reason) {
s[playerid] = 0;
s[killerid] ++;
if(s[killerid] == 5) {
SetPlayerScore(killerid, GetPlayerScore(killerid)+2);
GivePlayerMoney(killerid, 1000);
new string[64], pName[MAX_PLAYER_NAME];
GetPlayerName(killerid,pName,MAX_PLAYER_NAME);
format(string,sizeof string,"Server News: %s is Now On Killing Spree Of 5 ",pName);
SendClientMessageToAll(0xFF8000FF,string);
SendClientMessage(killerid,COLOR_GREEN,"Congratulation! You Got +2 Scores and 1000$ Money For Killing 5 in Row!");
s[killerid] = 0;
}
//other functions

