Advertisement
DManstrator

Todesfunktion inkl. Scoreboard-Eintrag/Update u. var Logs

Aug 6th, 2013
44
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.43 KB | None | 0 0
  1. //Funktion, wenn Clonk stirbt
  2. public func OnClonkDeath(object pClonk, int iKiller)
  3. {
  4. //Selbstmord != Kill + NaturKill != Kill
  5. if(iKiller==GetOwner(pClonk) || iKiller==-1)
  6. {
  7. //var aMsgSK = [Strg.]+[4]Trolltod[Strg.]+[4] //Wenn String
  8. var aMsgSK = ["<c %x>%s</c> ist gerade so richtig auf die Fresse gefailt.","What teh hell are you doing there <c %x>%s</c>?","zOMG, EPIC FAIL (<c %x>%s</c>)","Jetzt bin ich aber sprachlos <c %x>%s</c>...","<c %x>%s</c> führt im Kampf gegen sich selbst!","<c %x>%s</c> starb für einen guten Zweck - Lachen ist ja bekanntlich die beste Medizin ;)","Error 404: <c %x>%s</c> not found."];
  9. Log(aMsgSK[Random(GetLength(aMsgSK))],GetPlrColorDw(pClonk),GetPlayerName(GetOwner(pClonk)));
  10. }
  11.  
  12. else
  13. {
  14. Global(iKiller)[1]++;
  15.  
  16. SetScoreboardData(iKiller,1,Format("%d",Global(iKiller)[1]),Global(iKiller)[1]); //Punkte ins Scoreboard
  17. SortScoreboard(1);
  18. //var aMsgK = [Strg.]+[4]Trollkill[Strg.]+[4] //Wenn String
  19. var aMsgK = ["%s von <c %x>%s</c> wurde von <c %x>%s</c> geownt.","Der kleine Clonk %s von <c %x>%s</c> wurde vom großen <c %x>%s</c> getötet.","GetName(\"%s\")->Destroy();","The Classic WTF?!-Kill: %s (Team <c %x>%s</c>) sah ihn einfach nicht kommen... Glückwünsch <c %x>%s</c>! ^__________^"];
  20. Log(aMsgK[Random(GetLength(aMsgK))],GetName(pClonk),GetPlrColorDw(pClonk),GetPlayerName(GetOwner(pClonk)),GetPlayerName(iKiller));
  21. }
  22. return true;
  23. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement