|
Форум » Программирование в Pawno » Готовые решения » Убиство со звуком |
Убиство со звуком |
В начало мода ко всем 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; } Автор: Неизвестен Программист любитель :) |
| |||
| |||