01.09.2012, 19:21
pawn Код:
public OnPlayerDeath(playerid, killerid, reason) {
new Name[128];
GetPlayerName(killerid, Name, sizeof(Name));
PlayerTotalKills[killerid] = PlayerTotalKills[killerid] +1;
PlayerTotalKills[playerid] = 0;
if(PlayerTotalKills[killerid] == 1) {
PlayAudioStreamForPlayer(playerid, "http://uploads3.mp3songurls.com/1351113.mp3");
format(string, sizeof(string), "~r~%s FIRST BLOOD", Name);
GameTextForAll(string, 6000,3);
}
if(PlayerTotalKills[killerid] == 2) {
PlayAudioStreamForPlayer(playerid, "http://uploads3.mp3songurls.com/1351108.mp3");
format(string, sizeof(string), "~r~%s DOUBLE KILL.", Name);
GameTextForAll(string, 6000,3);
return 1;
}
But I want
All Players IN The Server Play That Sound
Rep Those Who help me: ( [ON]/OFF )