[HELP]How To Create Kill Streak ?? +REP
#5

and for making killing streak this--
Код:
enum pInfo
{
pKillstreak
}
new PlayerInfo[MAX_PLAYERS][pInfo];
public OnPlayerDeath(playerid, killerid, reason)
{
PlayerInfo[playerid][pKillstreak]=0;//resets the kill streak on player death
PlayerInfo[killerid][pKillstreak]++;//increases the no. in streak on a kill
GivePlayerMoney(killerid, 10000); //change the amount to whatever u want
SetPlayerScore(killerid, GetPlayerScore(killerid)+1);
SendDeathMessage(killerid, playerid, reason);
switch(PlayerInfo[killerid][pKillstreak])
{case 5: SendClientMessage(killerid,-1,"You have killed 5 persons without being dead"); //write commands for killing 5 persons in a row
//like this add case and no. at which u want to set the streaks
}}
Reply


Messages In This Thread
[HELP]How To Create Kill Streak ?? +REP - by WhiteAngels - 01.02.2014, 13:53
Re: [HELP]How To Create Kill Streak ?? +REP - by BroZeus - 01.02.2014, 14:08
Re: [HELP]How To Create Kill Streak ?? +REP - by ivanVU - 01.02.2014, 14:16
Re: [HELP]How To Create Kill Streak ?? +REP - by Acres - 01.02.2014, 14:17
Re: [HELP]How To Create Kill Streak ?? +REP - by BroZeus - 01.02.2014, 14:23
Re: [HELP]How To Create Kill Streak ?? +REP - by WhiteAngels - 02.02.2014, 04:54

Forum Jump:


Users browsing this thread: 1 Guest(s)