01.02.2014, 14:23
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 }}