When A player kills sombody eles they get a score.
#1

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:
Код:
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);
 }
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)