[ Новые сообщения · Участники · Правила форума · Поиск · RSS ]
  • Страница 1 из 1
  • 1
Форум pawno » Pawno » Готовые решения » Убиство со звуком
Убиство со звуком
ЛолЛисДата: Четверг, 24.07.2014, 10:59 | Сообщение # 1
Полковник
Группа: Администратор
Сообщений: 282
Статус: Offline
В начало мода ко всем new
Код
new PlayerTotalKills[MAX_PLAYERS] = 0;  
new string[128];
 
Ишим и добавляем в public OnPlayerDeath

Код

    new Name[128];  
      GetPlayerName(killerid, Name, sizeof(Name));  
      PlayerTotalKills[killerid] = PlayerTotalKills[killerid] +1;  
      PlayerTotalKills[playerid] = 0;  
      if(PlayerTotalKills[killerid] == 1) {  
          PlayAudioStreamForPlayer(playerid, "http://www.pamp3.site40.net/quake/firstblood.mp3");  
          format(string, sizeof(string), "~r~%s FIRST BLOOD", Name);  
          GameTextForAll(string, 6000,3);  
      }  
      if(PlayerTotalKills[killerid] == 2) {  
          PlayAudioStreamForPlayer(playerid, "http://www.pamp3.site40.net/quake/doublekill.mp3");  
          format(string, sizeof(string), "~r~%s DOUBLE KILL.", Name);  
          GameTextForAll(string, 6000,3);  
          return 1;  
      }  
      if(PlayerTotalKills[killerid] == 3) {  
          PlayAudioStreamForPlayer(playerid, "http://www.pamp3.site40.net/quake/killingspree.mp3");  
          format(string, sizeof(string), "~r~%s KILLING SPREE", Name);  
          GameTextForAll(string, 6000,3);  
          return 1;  
      }  
      if(PlayerTotalKills[killerid] == 4) {  
          PlayAudioStreamForPlayer(playerid, "http://www.pamp3.site40.net/quake/dominating.mp3");  
          format(string, sizeof(string), "~r~%s IS DOMINATING", Name);  
          GameTextForAll(string, 6000,3);  
          return 1;  
      }  
      if(PlayerTotalKills[killerid] == 5) {  
          PlayAudioStreamForPlayer(playerid, "http://www.pamp3.site40.net/quake/triplekill.mp3");  
          format(string, sizeof(string), "~r~%s TRIPLE KILL", Name);  
          GameTextForAll(string, 6000,3);  
          return 1;  
      }  
      if(PlayerTotalKills[killerid] == 7) {  
          PlayAudioStreamForPlayer(playerid, "http://www.pamp3.site40.net/quake/monsterkill.mp3");  
          format(string, sizeof(string), "~r~%s MONSTER KILL", Name);  
          GameTextForAll(string, 6000,3);  
          return 1;  
      }  
      if(PlayerTotalKills[killerid] == 9) {  
          PlayAudioStreamForPlayer(playerid, "http://www.pamp3.site40.net/quake/wickedsick.mp3");  
          format(string, sizeof(string), "~r~%s WICKED SICK", Name);  
          GameTextForAll(string, 6000,3);  
          return 1;  
      }  
      if(PlayerTotalKills[killerid] == 11) {  
          PlayAudioStreamForPlayer(playerid, "http://www.pamp3.site40.net/quake/ludicrouskill.mp3");  
          format(string, sizeof(string), "~r~%s LUDICROUS KILL", Name);  
          GameTextForAll(string, 6000,3);  
          return 1;  
      }  
      if(PlayerTotalKills[killerid] == 13) {  
          PlayAudioStreamForPlayer(playerid, "http://www.pamp3.site40.net/quake/ultrakill.mp3");  
          format(string, sizeof(string), "~r~%s ULTRA KILL", Name);  
          GameTextForAll(string, 6000,3);  
          return 1;  
      }  
      if(PlayerTotalKills[killerid] == 15) {  
          PlayAudioStreamForPlayer(playerid, "http://www.pamp3.site40.net/quake/unstoppable.mp3");  
          format(string, sizeof(string), "~r~%s IS UNSTOPPABLE", Name);  
          GameTextForAll(string, 6000,3);  
          return 1;  
      }


IP: 83.222.105.54:8358
© [CRMP] Россия - Дрифт
Форум pawno » Pawno » Готовые решения » Убиство со звуком
  • Страница 1 из 1
  • 1
Поиск: