Guest User

Untitled

a guest
Jan 2nd, 2019
151
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.09 KB | None | 0 0
  1. PUBLIC ZA EXP/LEVEL
  2. public OneMinute()
  3. {
  4. foreach(Player, i)
  5. {
  6. PlayerInfo[i][xRespekt] = PlayerInfo[i][xRespekt]+expdadeno;
  7. new string[128];
  8. new nxtlevel = PlayerInfo[i][xLevel]+1;
  9. new expamount = nxtlevel*levelexp;
  10. format(string, sizeof(string), "%d / %d",PlayerInfo[i][xRespekt],expamount);
  11. TextDrawSetString(Logo[14], string);
  12. if(PlayerInfo[i][xRespekt] >= expamount)
  13. {
  14. PlayerInfo[i][xRespekt] = 0;
  15. PlayerInfo[i][xLevel]++;
  16. TextDrawSetString(Logo[14], "...");
  17. format(string, sizeof(string), "~g~POKACIO SI LEVEL!");
  18. GameTextForPlayer(i, string, 5000, 4);
  19. }
  20. }
  21. return 1;
  22. }
  23.  
  24. TEXTDRAW ZA EXP ( kad ga stavim u createplayertextdraw ne pojavlja se ig, prazno je)
  25.  
  26. Logo[14] = TextDrawCreate(537.599670, 106.773330, "1 / 8");
  27. TextDrawLetterSize(Logo[14], 0.433199, 1.532800);
  28. TextDrawAlignment(Logo[14], 1);
  29. TextDrawColor(Logo[14], -1);
  30. TextDrawSetShadow(Logo[14], 0);
  31. TextDrawSetOutline(Logo[14], 1);
  32. TextDrawBackgroundColor(Logo[14], 51);
  33. TextDrawFont(Logo[14], 1);
  34. TextDrawSetProportional(Logo[14], 1);
  35.  
  36.  
  37.  
  38.  
  39. ///////-- KOMANDE ZA ADMINI I GM - DUTY TIME SE BAGUJE KADA IMA VISE IGRACA IG
  40. //////////////////////////////////////////////////////////////////////////////////
  41. CMD:admins( playerid, params[] )
  42. {
  43. new string[ 300 ],dstring[32];
  44. strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );
  45. strcat( DialogStrgEx, "{008BCE}-------------------------------------------------------------------------------------\n\n" );
  46. foreach( Player, i )//!AdminDuty[ playerid ]
  47. {
  48.  
  49. if(AdminDuty[ i ]) {dstring = "{00FF40}DA";}
  50. else if(!AdminDuty[ i ]) {dstring = "{FF0000}NE";}
  51. new reputacija = PlayerInfo[i][xRep];
  52. PlayerInfo[i][xRep] = reputacija;
  53.  
  54. if( PlayerInfo[ i ][ xAdmin ] >= 1 && PlayerInfo[ i ][ xAdmin ] <= 4 )
  55. {
  56. format( string, sizeof( string ), "{008BCE}ADMIN LEVEL %d | {FFFFFF}%s {008BCE}| Na duznpst: {00FF00}%s {FFFFFF}[ DT: %dmin ] {008BCE}Rep:{00FF00}|%d/10\n", PlayerInfo[ i ][ xAdmin ], ImeIgraca( i ),dstring,PlayerInfo[ i ][xStaffMin], PlayerInfo[i][xRep]);
  57. strcat( DialogStrgEx, string );
  58. }
  59. if( PlayerInfo[ i ][ xAdmin ] == 5 )
  60. {
  61. format( string, sizeof( string ), "{008BCE}ADMIN ZA LIDERI | {FFFFFF}%s {008BCE}| Na duznpst: {00FF00}%s {FFFFFF}[ DT: %dmin ] {008BCE}Rep:{00FF00}|%d/10\n", ImeIgraca( i ),dstring,PlayerInfo[ i ][xStaffMin], PlayerInfo[i][xRep] );
  62. strcat( DialogStrgEx, string );
  63. }
  64. if( PlayerInfo[ i ][ xAdmin ] == 1336 )
  65. {
  66. format( string, sizeof( string ), "{008BCE}SUPPORT ADMIN | {FFFFFF}%s {008BCE}| Na duznpst: {00FF00}%s {FFFFFF}[ DT: %dmin ] {008BCE}Rep:{00FF00}|%d/10\n", ImeIgraca( i ),dstring,PlayerInfo[ i ][xStaffMin], PlayerInfo[i][xRep] );
  67. strcat( DialogStrgEx, string );
  68. }
  69. if( PlayerInfo[ i ][ xAdmin ] == 1337 )
  70. {
  71. format( string, sizeof( string ), "{008BCE}Z.Head Admin | {FFFFFF}%s {008BCE}| Na duznpst: {00FF00}%s {FFFFFF}[ DT: %dmin ] {008BCE}Rep:{00FF00}|%d/10\n", ImeIgraca( i ),dstring,PlayerInfo[ i ][xStaffMin], PlayerInfo[i][xRep] );
  72. strcat( DialogStrgEx, string );
  73. }
  74. if( PlayerInfo[ i ][ xAdmin ] == 1338 )
  75. {
  76. format( string, sizeof( string ), "{008BCE}Head Admin | {FFFFFF}%s {008BCE}| Na duznpst: {00FF00}%s {FFFFFF}[ DT: %dmin ] {008BCE}Rep:{00FF00}|%d/10\n", ImeIgraca( i ),dstring,PlayerInfo[ i ][xStaffMin], PlayerInfo[i][xRep] );
  77. strcat( DialogStrgEx, string );
  78. }
  79. if( PlayerInfo[ i ][ xAdmin ] == 1339 )
  80. {
  81. format( string, sizeof( string ), "{008BCE}Maintainer | {FFFFFF}%s {008BCE}| Na duznpst: {00FF00}%s {FFFFFF}[ DT: %dmin ] {008BCE}Rep:{00FF00}|%d/10\n", ImeIgraca( i ),dstring,PlayerInfo[ i ][xStaffMin], PlayerInfo[i][xRep] );
  82. strcat( DialogStrgEx, string );
  83. }
  84. if( PlayerInfo[ i ][ xAdmin ] == 2015 )
  85. {
  86. format( string, sizeof( string ), "{008BCE}FOUNDER | {FFFFFF}%s {008BCE}| Na duznpst: {00FF00}%s {FFFFFF}[ DT: %dmin ] {008BCE}Rep:{00FF00}|%d/10\n", ImeIgraca( i ),dstring,PlayerInfo[ i ][xStaffMin], PlayerInfo[i][xRep] );
  87. strcat( DialogStrgEx, string );
  88. }
  89.  
  90. }
  91. strcat( DialogStrgEx, "\n{008BCE}-------------------------------------------------------------------------------------" );
  92. SPD( playerid, 0, DSMSG, ""col_ugblue"Online Admini", DialogStrgEx, "Vo red", "" );
  93. strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );
  94. return 1;
  95. }
  96. //////////////////////////////////////////////////////////////////////////////////
  97. CMD:gamemasteri( playerid, params[] )
  98. {
  99. new string[ 300 ],dstring[32];
  100. strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );
  101. strcat( DialogStrgEx, "{00FF40}-------------------------------------------------------------------------------------\n\n" );
  102. foreach( Player, i )//!AdminDuty[ playerid ]
  103. {
  104.  
  105. if(AdminDuty[ i ]) {dstring = "{00FF40}DA";}
  106. else if(!AdminDuty[ i ]) {dstring = "{FF0000}NE";}
  107. new reputacija = PlayerInfo[i][xRep];
  108. PlayerInfo[i][xRep] = reputacija;
  109.  
  110. if( PlayerInfo[ i ][ xHelper ] >= 1 && PlayerInfo[ i ][ xHelper ] <= 3 )
  111. {
  112. format( string, sizeof( string ), "{00FF40}GM LEVEL %d | {FFFFFF}%s {00FF40}| Na duznost: {00FF00}%s {FFFFFF}[ DT: %dmin ] {008BCE}Rep:{00FF00}|%d/10\n", PlayerInfo[ i ][ xHelper ], ImeIgraca( i ),dstring,PlayerInfo[ i ][xStaffMin], PlayerInfo[i][xRep] );
  113. strcat( DialogStrgEx, string );
  114. }
  115. if( PlayerInfo[ i ][ xHelper ] == 4 )
  116. {
  117. format( string, sizeof( string ), "{00FF40}GM 4 | {FFFFFF}%s {00FF40}| Na duznpst: {00FF00}%s {FFFFFF}[ DT: %dmin ] {008BCE}Rep:{00FF00}|%d/10\n", ImeIgraca( i ),dstring,PlayerInfo[ i ][xStaffMin], PlayerInfo[i][xRep] );
  118. strcat( DialogStrgEx, string );
  119. }
  120.  
  121. }
  122. strcat( DialogStrgEx, "\n{00FF40}-------------------------------------------------------------------------------------" );
  123. SPD( playerid, 0, DSMSG, "{00FF40}Online GameMasteri", DialogStrgEx, "Vo red", "" );
  124. strdel( DialogStrgEx, 0, sizeof( DialogStrgEx ) );
  125. return 1;
  126. }
Advertisement
Add Comment
Please, Sign In to add comment