26.10.2010, 11:45
Quote:
pawn Код:
|
This will not work for obvious reasons.
@Hayden_Bruin you have it right, just get rid of the negative sign you have.
pawn Код:
public OnPlayerDeath(playerid, killerid, reason) {
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); //this or
SetPlayerScore(playerid, GetPlayerScore(playerid) - 1); //this or
//SetPlayerScore(thisplayertogan, GetPlayerScore(thescoreoftheplayer) + 1);
KillingSpree[killerid]++;
KillingSpree[playerid] = 0;
if(KillingSpree[killerid] == 3) {
new pname[24];
new string[256];
GetPlayerName(killerid,pname,24);
format(string,sizeof(string), "Watch Out For %s, Hes On A 3 Man Kill Streak.",pname);
SendClientMessageToAll(COLOR_YELLOW,string);
}
return 1;
}