Kill spree - trouble
#3

Quote:
Originally Posted by <Weponz>
Посмотреть сообщение
Код:
public OnPlayerDeath(playerid, killerid, reason)
{   Killsprees[killerid] ++;
    Killsprees[playerid] = 0;
   
    if(Killsprees[killerid] == 3)
    {
       new pname2[MAX_PLAYER_NAME],string[22+ MAX_PLAYER_NAME];
       GetPlayerName(killerid,pname2,sizeof(pname2));
       format(string,sizeof(string),"%s Is on a killing spree of 3",pname2);
       SendClientMessageToAll(Streakcolor,string);
    }
    if(Killsprees[killerid] == 5)
    {
       new pname2[MAX_PLAYER_NAME],string[22+ MAX_PLAYER_NAME];
       GetPlayerName(killerid,pname2,sizeof(pname2));
       format(string,sizeof(string),"%s Is on a killing spree of 5",pname2);
       SendClientMessageToAll(Streakcolor,string);
   
    }
    if(Killsprees[killerid] == 10)
    {
       new pname2[MAX_PLAYER_NAME],string[22+ MAX_PLAYER_NAME];
       GetPlayerName(killerid,pname2,sizeof(pname2));
       format(string,sizeof(string),"%s Is on a killing spree of 10!",pname2);
       SendClientMessageToAll(Streakcolor,string);
   
    }
    return 1;
}
You want to get the name of the Killer ID...You had it getting the Player ID..
Ohhhh yea, thanks. I guess i shouldn't of copied the join code rofl
Reply


Messages In This Thread
Kill spree - trouble - by Jay. - 30.10.2010, 17:32
Re: Kill spree - trouble - by <Weponz> - 30.10.2010, 17:36
Re: Kill spree - trouble - by Jay. - 30.10.2010, 17:42

Forum Jump:


Users browsing this thread: 2 Guest(s)