Witamy w Nieoficjalnym polskim support'cie AMX Mod X
Witamy w Nieoficjalnym polskim support'cie AMX Mod X, jak w większości społeczności internetowych musisz się zarejestrować aby móc odpowiadać lub zakładać nowe tematy, ale nie bój się to jest prosty proces w którym wymagamy minimalnych informacji.
|
Guest Message by DevFuse
Wklejka 1039yhj6t2w2l dodana przez GroVVer, 07.12.2015 15:48
1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12. 13. 14. 15. 16. 17. 18. 19. 20. 21. 22. 23. 24. 25. 26. 27. 28. 29. 30. 31. 32. 33. 34. 35. 36. 37. 38. 39. 40. 41. 42. 43. 44. 45. 46. 47. 48. 49. 50. 51. 52. 53. 54. 55. 56. 57. 58. 59. 60. 61. 62. 63. 64. 65. 66. 67. 68. 69. 70. 71. 72. 73.
public Message_Intermission() { new players[32], num; get_players(players, num, "h"); new tempfrags, id; new swapfrags, swapid; new starfrags[3]; new starid[3]; for (new i = 0; i < num; i++) { id = players[i]; tempfrags = get_user_frags(id); if ( tempfrags > starfrags[0] ) { starfrags[0] = tempfrags; starid[0] = id; if ( tempfrags > starfrags[1] ) { swapfrags = starfrags[1]; swapid = starid[1]; starfrags[1] = tempfrags; starid[1] = id; starfrags[0] = swapfrags; starid[0] = swapid; if ( tempfrags > starfrags[2] ) { swapfrags = starfrags[2]; swapid = starid[2]; starfrags[2] = tempfrags; starid[2] = id; starfrags[1] = swapfrags; starid[1] = swapid; } } } } new name[32]; new winner = starid[2]; if ( !winner ) return; new line[100]; line[0] = 0x04; formatex(line[1], 98, "Najlepsi gracze na tej mapie:"); ColorChat(0, GREEN, line); line[0] = 0x04; get_user_name(starid[2], name, charsmax(name)); line[0] = 0x04; PlayerXP[starid[2]]+=xp1st; formatex(line[1], 98, "1. ^x03%s^x01 - ^x03%i^x01 Fragow - ^x03+%d^x01 XP", name, starfrags[2],xp1st); ColorChat(0, GREEN, line); get_user_name(starid[1], name, charsmax(name)); line[0] = 0x04; PlayerXP[starid[1]]+=xp2nd; formatex(line[1], 98, "2. ^x03%s^x01 - ^x03%i^x01 Fragow - ^x03+%d^x01 XP", name, starfrags[1],xp2nd); ColorChat(0, GREEN, line); get_user_name(starid[0], name, charsmax(name)); line[0] = 0x04; PlayerXP[starid[0]]+=xp3th; formatex(line[1], 98, "3. ^x03%s^x01 - ^x03%i^x01 Fragow - ^x03+%d^x01 XP", name, starfrags[0],xp3th); ColorChat(0, GREEN, line); }
Dodanych wklejek: 5202
Powered By (Pav32) Pastebin © 2011