Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2015
227
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.76 KB | None | 0 0
  1. if (strcmp(cmd, "/stats", true) == 0)
  2. {
  3. if(IsPlayerConnected(playerid))
  4. {
  5. if (gPlayerLogged[playerid] != 0)
  6. {
  7. ShowStats(playerid,playerid);
  8. /*GetPlayerName(playerid, sendername, sizeof(sendername));
  9. format(string, sizeof(string), "* %s flips open his PDA and looks at his stats.", sendername);
  10. ProxDetector(10.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);*/
  11. }
  12. else
  13. {
  14. SendClientMessage(playerid, COLOR_GRAD1, " You are not Logged in!");
  15. }
  16. }
  17. return 1;
  18. }
  19.  
  20. if(strcmp(cmd, "/dn", true) == 0)
  21. {
  22. if(IsPlayerConnected(playerid))
  23. {
  24. if (PlayerInfo[playerid][pAdmin] >= 1)
  25. {
  26. new Float:slx, Float:sly, Float:slz;
  27. GetPlayerPos(playerid, slx, sly, slz);
  28. SetPlayerPos(playerid, slx, sly, slz-2);
  29. return 1;
  30. }
  31. else
  32. {
  33. SendClientMessage(playerid, COLOR_GRAD1, " You are not an Admin !");
  34. }
  35. }
  36. return 1;
  37. }
  38. if(strcmp(cmd, "/up", true) == 0)
  39. {
  40. if(IsPlayerConnected(playerid))
  41. {
  42. if (PlayerInfo[playerid][pAdmin] >= 1)
  43. {
  44. new Float:slx, Float:sly, Float:slz;
  45. GetPlayerPos(playerid, slx, sly, slz);
  46. SetPlayerPos(playerid, slx, sly, slz+2);
  47. return 1;
  48. }
  49. else
  50. {
  51. SendClientMessage(playerid, COLOR_GRAD1, " You are not an Admin !");
  52. }
  53. }
  54. return 1;
  55. }
  56. if (strcmp(cmd, "/fly", true) == 0)
  57. {
  58. if(IsPlayerConnected(playerid))
  59. {
  60. if (PlayerInfo[playerid][pAdmin] >= 1)
  61. {
  62. new Float:px, Float:py, Float:pz, Float:pa;
  63. GetPlayerFacingAngle(playerid,pa);
  64. if(pa >= 0.0 && pa <= 22.5) //n1
  65. {
  66. GetPlayerPos(playerid, px, py, pz);
  67. SetPlayerPos(playerid, px, py+30, pz+5);
  68. }
  69. if(pa >= 332.5 && pa < 0.0) //n2
  70. {
  71. GetPlayerPos(playerid, px, py, pz);
  72. SetPlayerPos(playerid, px, py+30, pz+5);
  73. }
  74. if(pa >= 22.5 && pa <= 67.5) //nw
  75. {
  76. GetPlayerPos(playerid, px, py, pz);
  77. SetPlayerPos(playerid, px-15, py+15, pz+5);
  78. }
  79. if(pa >= 67.5 && pa <= 112.5) //w
  80. {
  81. GetPlayerPos(playerid, px, py, pz);
  82. SetPlayerPos(playerid, px-30, py, pz+5);
  83. }
  84. if(pa >= 112.5 && pa <= 157.5) //sw
  85. {
  86. GetPlayerPos(playerid, px, py, pz);
  87. SetPlayerPos(playerid, px-15, py-15, pz+5);
  88. }
  89. if(pa >= 157.5 && pa <= 202.5) //s
  90. {
  91. GetPlayerPos(playerid, px, py, pz);
  92. SetPlayerPos(playerid, px, py-30, pz+5);
  93. }
  94. if(pa >= 202.5 && pa <= 247.5)//se
  95. {
  96. GetPlayerPos(playerid, px, py, pz);
  97. SetPlayerPos(playerid, px+15, py-15, pz+5);
  98. }
  99. if(pa >= 247.5 && pa <= 292.5)//e
  100. {
  101. GetPlayerPos(playerid, px, py, pz);
  102. SetPlayerPos(playerid, px+30, py, pz+5);
  103. }
  104. if(pa >= 292.5 && pa <= 332.5)//e
  105. {
  106. GetPlayerPos(playerid, px, py, pz);
  107. SetPlayerPos(playerid, px+15, py+15, pz+5);
  108. }
  109. }
  110. else
  111. {
  112. SendClientMessage(playerid, COLOR_GRAD1, " You are not an Admin !");
  113. }
  114. }
  115. return 1;
  116. }
  117. if(strcmp(cmd, "/lt", true) == 0)
  118. {
  119. if(IsPlayerConnected(playerid))
  120. {
  121. if (PlayerInfo[playerid][pAdmin] >= 1)
  122. {
  123. new Float:slx, Float:sly, Float:slz;
  124. GetPlayerPos(playerid, slx, sly, slz);
  125. SetPlayerPos(playerid, slx, sly+2, slz);
  126. return 1;
  127. }
  128. else
  129. {
  130. SendClientMessage(playerid, COLOR_GRAD1, " You are not an Admin !");
  131. }
  132. }
  133. return 1;
  134. }
  135. if(strcmp(cmd, "/rt", true) == 0)
  136. {
  137. if(IsPlayerConnected(playerid))
  138. {
  139. if (PlayerInfo[playerid][pAdmin] >= 1)
  140. {
  141. new Float:slx, Float:sly, Float:slz;
  142. GetPlayerPos(playerid, slx, sly, slz);
  143. SetPlayerPos(playerid, slx, sly-2, slz-2);
  144. return 1;
  145. }
  146. else
  147. {
  148. SendClientMessage(playerid, COLOR_GRAD1, " You are not an Admin !");
  149. }
  150. }
  151. return 1;
  152. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement