Advertisement
Guest User

Untitled

a guest
Dec 15th, 2015
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 12.40 KB | None | 0 0
  1. #define DIALOG_HELP 38
  2. #define DIALOG_HELP2 39
  3.  
  4. // Asta am adaugat sub ondialogresponse
  5.  
  6. if(dialogid == DIALOG_HELP)
  7. {
  8. if(response)
  9. {
  10. new string1[MAX_STRING],string2[MAX_STRING],string3[MAX_STRING],string4[MAX_STRING],string5[MAX_STRING],string6[MAX_STRING],string7[MAX_STRING],string8[MAX_STRING],stringy[MAX_STRING];
  11. if(listitem == 0)
  12. {
  13. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Account Commands", "/stats /buylevel /changepass","Back","Exit");
  14. }
  15. else if(listitem == 1)
  16. {
  17. format(string1, sizeof(string1), "*** Other *** /cellphonehelp /househelp /renthelp /businesshelp /wthelp /vhelp /leaderhelp /eventhelp /clanhelp");
  18. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Other Commands", stringy,"Back","Exit");
  19. }
  20. else if(listitem == 2)
  21. {
  22. format(string1, sizeof(string1), "*** GENERAL *** /admins /helpers /report /helpme /accept /cancel /pay /hqs /charity /givekey /switchkey /shop");
  23. format(string2, sizeof(string2), "*** GENERAL *** /showlicenses /contract /spawnchange /animlist /gps /achievements /findbiz /findhouse");
  24. format(string3, sizeof(string3), "*** GENERAL *** /wars /top /topclans /turfs");
  25. format(stringy, sizeof(stringy), "%s\n%s\n%s", string1, string2, string3);
  26. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: General Commands", stringy,"Back","Exit");
  27. }
  28. else if(listitem == 3)
  29. {
  30. format(string1, sizeof(string1), "(/w)hisper (/s)hout (/f)action (/r)adio");
  31. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Chat Commands", string1,"Back","Exit");
  32. }
  33. else if(listitem == 4)
  34. {
  35. if(PlayerInfo[playerid][pMember] == 0)
  36. {
  37. format(string1, sizeof(string1), "You're not in a group.");
  38. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Group Commands", string1,"Back","Exit");
  39. }
  40. if(PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader] == 1)
  41. {
  42. format(string1, sizeof(string1), "*** PD *** (/r)adio (/d)epartment (/gov)ernment /duty (/m)egaphone (/su)spect /arrest /wanted /drag /tazer");
  43. format(string2, sizeof(string2), "*** PD *** /cuff /uncuff /ticket /take /clear /free /ram /radar /mdc /frisk");
  44. format(stringy, sizeof(stringy), "%s\n%s", string1, string2);
  45. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Group Commands", stringy,"Back","Exit");
  46. }
  47. else if(PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader] == 2)
  48. {
  49. format(string1, sizeof(string1), "*** FBI *** (/r)adio (/d)epartment (/gov)ernment /duty (/m)egaphone (/su)spect /arrest /wanted /drag /cuff /uncuff ");
  50. format(string2, sizeof(string2), "*** FBI *** /clear /free /ram /mdc /frisk");
  51. format(stringy, sizeof(stringy), "%s\n%s", string1, string2);
  52. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Group Commands", stringy,"Back","Exit");
  53. }
  54. else if(PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader] == 3)
  55. {
  56. format(stringy, sizeof(stringy), "*** Government *** (/f)amily /gov /settax /checksafe /givetax");
  57. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Group Commands", stringy,"Back","Exit");
  58. }
  59. else if(PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader] == 4)
  60. {
  61. format(stringy, sizeof(stringy), "*** NR *** (/f)amily /heal /news /live");
  62. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Group Commands", stringy,"Back","Exit");
  63. }
  64. else if(PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader] == 5)
  65. {
  66. format(stringy, sizeof(stringy), "*** Taxi *** (/f)amily /heal /fare");
  67. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Group Commands", stringy,"Back","Exit");
  68. }
  69. else if(PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader] == 6)
  70. {
  71. format(stringy, sizeof(stringy), "*** TTC *** (/f)amily /heal /towcar");
  72. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Group Commands", stringy,"Back","Exit");
  73. }
  74. else if(PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader] == 7)
  75. {
  76. format(stringy, sizeof(stringy), "*** Hitmen *** (/f)amily /heal /undercover /gethit /leavehit /takeguns /broke");
  77. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Group Commands", stringy,"Back","Exit");
  78. }
  79. else if(PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader] == 8)
  80. {
  81. format(stringy, sizeof(stringy), "*** Mafia *** (/f)amily /heal /order /safe /attack /tie /untie");
  82. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Group Commands", stringy,"Back","Exit");
  83. }
  84. else if(PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader] == 9)
  85. {
  86. format(stringy, sizeof(stringy), "*** Mafia *** (/f)amily /heal /order /safe /attack /tie /untie");
  87. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Group Commands", stringy,"Back","Exit");
  88. }
  89. else if(PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader] == 10)
  90. {
  91. format(stringy, sizeof(stringy), "*** Mafia *** (/f)amily /heal /order /safe /attack /tie /untie");
  92. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Group Commands", stringy,"Back","Exit");
  93. }
  94. else if(PlayerInfo[playerid][pMember] + PlayerInfo[playerid][pLeader] == 11)
  95. {
  96. format(stringy, sizeof(stringy), "*** Mafia *** (/f)amily /heal /order /safe /attack /tie /untie");
  97. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Group Commands", stringy,"Back","Exit");
  98. }
  99. }
  100. else if(listitem == 5)
  101. {
  102. format(string1, sizeof(string1), "Lifejump : Robman : Exhaust : Carlock : Rcarjack1 : Lcarjack1 : Rcarjack2 : Lcarjack2");
  103. format(string2, sizeof(string2), "Lightcig : Tapcig : Bat : Lean : Hoodfrisked : Dancing : Box : Lowthrow : Highthrow");
  104. format(string3, sizeof(string3), "Leftslap : Handsup : Fall : Fallback : Sup : Rap : Push : Akick : Lowbodypush");
  105. format(string4, sizeof(string4), "Spray : Headbutt : Pee : Koface : Kostomach : Kiss : Rollfall : Lay2 : Hitch");
  106. format(string5, sizeof(string5), "Beach : Medic : Scratch : Sit : Drunk : Bomb : Getarrested : Laugh : Lookout");
  107. format(string6, sizeof(string6), "Aim : Crossarms : Lay : Hide : Vomit : Eating : Wave : Shouting : Chant");
  108. format(string7, sizeof(string7), "Frisked : Exhausted : Injured : Slapass : Deal : Dealstance : Crack : Wank : Gro");
  109. format(string8, sizeof(string8), "Sit : Chat : Fucku : Taichi : Knife : Basket : JumpWater");
  110. format(stringy, sizeof(stringy), "%s\n%s\n%s\n%s\n%s\n%s\n%s\n%s", string1, string2, string3, string4, string5, string6, string7, string8);
  111. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Animations Commands", stringy,"Back","Exit");
  112. }
  113. else if(listitem == 6)
  114. {
  115. format(string1, sizeof(string1), "*** HOUSE *** /open /setrentable /setrent /housewithdraw");
  116. format(string2, sizeof(string2), "*** HOUSE *** /sellhouseto /sellhouse /houseinfo /setprice");
  117. format(stringy, sizeof(stringy), "%s\n%s", string1, string2);
  118. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: House Commands", stringy,"Back","Exit");
  119. }
  120. else if(listitem == 7)
  121. {
  122. if(PlayerInfo[playerid][pJob] == 1)
  123. {
  124. format(string1, sizeof(string1), "*** Detective *** /find");
  125. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Job Commands", string1,"Back","Exit");
  126. }
  127. if(PlayerInfo[playerid][pJob] == 3)
  128. {
  129. format(string1, sizeof(string1), "*** Mechanic *** /repair /refill /mduty");
  130. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Job Commands", string1,"Back","Exit");
  131. }
  132. else if(PlayerInfo[playerid][pJob] == 5)
  133. {
  134. format(string1, sizeof(string1), "*** Trucker *** /work");
  135. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Job Commands", string1,"Back","Exit");
  136. }
  137. else if(PlayerInfo[playerid][pJob] == 6)
  138. {
  139. format(string1, sizeof(string1), "*** Pizza Boy *** /getcommand");
  140. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Job Commands", string1,"Back","Exit");
  141. }
  142. else if(PlayerInfo[playerid][pJob] == 9)
  143. {
  144. format(string1, sizeof(string1), "*** Arms Dealer *** /materials /sellgun /creategun");
  145. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Job Commands", string1,"Back","Exit");
  146. }
  147. else if(PlayerInfo[playerid][pJob] == 10)
  148. {
  149. format(string1, sizeof(string1), "*** WoodCutter *** /loadwood /sellwood /woodbalance");
  150. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Job Commands", string1,"Back","Exit");
  151. }
  152. }
  153. else if(listitem == 8)
  154. {
  155. format(string1, sizeof(string1), "*** BUSINESS *** /bizinfo /bizfee / /bizwithdraw /itemprice");
  156. format(string2, sizeof(string2), "*** BUSINESS *** /open /sellbizto /sellbiz");
  157. format(stringy, sizeof(stringy), "%s\n%s", string1, string2);
  158. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Business Commands", string1,"Back","Exit");
  159. }
  160. else if(listitem == 9)
  161. {
  162. if(PlayerInfo[playerid][pHelper] == 0)
  163. {
  164. SendClientMessage(playerid, COLOR_GREY, "You aren't an official helper.");
  165. return 1;
  166. }
  167. if(PlayerInfo[playerid][pHelper] == 1)
  168. {
  169. format(string1, sizeof(string1), "** Helper level 1 ** (/he)lperchat /setint /setvw /slap /unfreeze /goto /goback /cc");
  170. format(string2, sizeof(string2), "** Helper level 1 ** /pm /mute /respawn /hod");
  171. format(string3, sizeof(string3), "** Helper level 1 ** /helps /oh /ch /hc");
  172. format(stringy, sizeof(stringy), "%s\n%s\n%s", string1, string2, string3);
  173. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Helper Commands", stringy,"Back","Exit");
  174. }
  175. if(PlayerInfo[playerid][pHelper] == 2)
  176. {
  177. format(string1, sizeof(string1), "** Helper level 1 ** /freeze");
  178. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Helper Commands", stringy,"Back","Exit");
  179. }
  180. }
  181. else if(listitem == 10)
  182. {
  183. format(string1, sizeof(string1), "*** Vehicle HELP *** /vehicles /sellvehex /sellvehto /removemods /radiocar /givekey");
  184. format(string2, sizeof(string2), "*** Vehicle HELP *** /park /plate /vcolor /sellveh /vtow /locate /lock /vehswitch");
  185. format(string3, sizeof(string3), "*** Vehicle HELP *** /buyneon /neon");
  186. format(stringy, sizeof(stringy), "%s\n%s\n%s", string1, string2, string3);
  187. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Vehicle Commands", stringy,"Back","Exit");
  188. }
  189. else if(listitem == 11)
  190. {
  191. format(string1, sizeof(string1), "/withdraw /deposit /transfer");
  192. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Bank Commands", stringy,"Back","Exit");
  193. }
  194. else if(listitem == 12)
  195. {
  196. format(string1, sizeof(string1), "Se poate da /rob in fata banci intr-un vehicul.");
  197. format(string2, sizeof(string2), "Sa ai level 5 tu si inca o persoana ce este in vehicul cu tine + 10 puncte rob.");
  198. format(stringy, sizeof(stringy), "%s\n%s", string1, string2);
  199. ShowPlayerDialog(playerid, DIALOG_HELP2, DIALOG_STYLE_MSGBOX, "SERVER: Rob", stringy,"Back","Exit");
  200. }
  201. }
  202. }
  203.  
  204. if(dialogid == DIALOG_HELP2)
  205. {
  206. if(response)
  207. {
  208. ShowPlayerDialog(playerid,DIALOG_HELP,DIALOG_STYLE_LIST, "SERVER: Commands", "Account\nOther\nGeneral\nChat\nGroups\nAnimations\nHouses\nJobs\nBusinesses\nHelpers\nVehicles\nBank\nRob", "Select","Exit");
  209. }
  210. return 1;
  211. }
  212.  
  213. // si comanda
  214.  
  215. CMD:help(playerid,params[])
  216. {
  217. if(gLogged[playerid] == 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "You need to login first.");
  218. if(IsPlayerConnected(playerid))
  219. {
  220. ShowPlayerDialog(playerid,DIALOG_HELP,DIALOG_STYLE_LIST, "SERVER: Commands", "Account\nOther\nGeneral\nChat\nGroups\nAnimations\nHouses\nJobs\nBusinesses\nHelpers\nVehicles\nBank\nRob", "Select","Exit");
  221. }
  222. return 1;
  223. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement