07.06.2014, 09:48
Hello all, i need help with this system.. its not working and these message not loading up either.. please help!
Code:
new KillStreakCount[MAX_PLAYERS];
Code:
public OnPlayerDeath(playerid, killerid, reason) { pInfo[killerid][Kills]++; KillStreak(killerid, playerid); KillStreakCount[playerid] = 0; KillStreakCount[playerid] ++; SetPlayerScore(killerid, GetPlayerScore(killerid) + 1); pInfo[playerid][Deaths]++; return 1; }
Code:
stock KillStreak(killerid, playerid) { new stockstring[128]; KillStreakCount[playerid] ++; if(KillStreakCount[playerid] == 2) { PlayAudioStreamForPlayer(killerid, "http://uploads3.mp3songurls.com/1351108.mp3"); format(stockstring, sizeof(stockstring), "%s has slain %s for a double kill!", PlayerName(killerid), PlayerName(playerid)); SendClientMessage(playerid, COLOR_RED, stockstring); } if(KillStreakCount[playerid] == 3) { format(stockstring, sizeof(stockstring), "%s has slain %s for a triple kill!", PlayerName(killerid), PlayerName(playerid)); SendClientMessage(playerid, COLOR_RED, stockstring); } if(KillStreakCount[playerid] == 4) { format(stockstring, sizeof(stockstring), "%s has slain %s for a quadra kill!", PlayerName(killerid), PlayerName(playerid)); SendClientMessage(playerid, COLOR_RED, stockstring); } if(KillStreakCount[playerid] == 5) { format(stockstring, sizeof(stockstring), "%s has slain %s for a penta kill!", PlayerName(killerid), PlayerName(playerid)); SendClientMessage(playerid, COLOR_RED, stockstring); } return 1; }