How need make "End Killstreak"
#8

Quote:
Originally Posted by Hunud
Посмотреть сообщение
Example like this! You just need to set your variables

if(pInfo[killerid][Killstreak])
{
format(text, sizeof(text), "%s killing spree has been ended by %s", PlayerName1(playerid) PlayerName2(killerid));
SendClientMessageToAll(playerid, text);
}
So how should i put those variable if there are just case?
Код:
    new kstring[256];
    switch(pInfo[killerid][Killstreak])
    {
        case 5: format(kstring,sizeof(kstring),""chat""COL_GREEN" %s has achieved a 5 killstreak "COL_WHITE"(+5 XP)",PlayerName(killerid)), SendClientMessageToAll(-1,kstring), pInfo[killerid][pXP] += 5;
        case 10: format(kstring,sizeof(kstring),""chat""COL_GREEN" %s has achieved a 10 killstreak "COL_WHITE"(+10 XP)",PlayerName(killerid)), SendClientMessageToAll(-1,kstring), pInfo[killerid][pXP] += 10;
So the important part how need get player kills and give the same exp if you kill him like example he made 4kills, i kill him i get 4exp ant etc so if he do <4 lower then 4ks this "End Killstreak" doesnt show up.
Reply


Messages In This Thread
How need make "End Killstreak" - by Groc - 23.03.2017, 10:24
Re: How need make "End Killstreak" - by ISmokezU - 23.03.2017, 11:12
Re: How need make "End Killstreak" - by Groc - 23.03.2017, 11:33
Re: How need make "End Killstreak" - by Groc - 23.03.2017, 14:32
Re: How need make "End Killstreak" - by Hunud - 23.03.2017, 14:54
Re: How need make "End Killstreak" - by Groc - 23.03.2017, 15:00
Re: How need make "End Killstreak" - by Hunud - 23.03.2017, 15:06
Re: How need make "End Killstreak" - by Groc - 23.03.2017, 15:12
Re: How need make "End Killstreak" - by Vince - 23.03.2017, 17:19
Re: How need make "End Killstreak" - by Groc - 23.03.2017, 17:22

Forum Jump:


Users browsing this thread: 2 Guest(s)