26.10.2010, 10:16
I can do this perfectly fine when they die they loose a point, but how can i make them gain a point when they killl sombody.
code:
code:
Код:
public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerScore(playerid, GetPlayerScore(playerid) + -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);
}


