Advertisement
Guest User

Untitled

a guest
Jan 29th, 2012
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.09 KB | None | 0 0
  1. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  2. {
  3. new string[256];
  4. if(dialogid == 552)
  5. {
  6. if(response)
  7. {
  8. if(listitem == 0)
  9. {
  10. SendClientMessage(playerid,0x11DB1CFF, "Òè ïðèå ïðàâèëàòà!");
  11.  
  12. }
  13. if(listitem == 1)
  14. {
  15. SendClientMessage(playerid, COLOR_RED, "Òè îòêàçà äà ïðèåìåø ïðàâèëàòà è áåøå èçãîíåí îò èãðàòà!");
  16. Kick(playerid);
  17. }
  18. }
  19. }
  20. if(dialogid == 1324)
  21. {
  22. if(response)
  23. {
  24. if(listitem == 0)
  25. {
  26. GivePlayerCash(playerid, 50000);
  27. SendClientMessage(playerid, COLOR_RED, "Òè ñïå÷åëè $50000$");
  28. PlayerInfo[playerid][pHealme] = 5*60;
  29. }
  30. if(listitem == 1)
  31. {
  32. GivePlayerCash(playerid, 50000);
  33. SendClientMessage(playerid, COLOR_RED, "Òè ñïå÷åëè $50000$");
  34. PlayerInfo[playerid][pHealme] = 5*60;
  35. }
  36. if(listitem == 2)
  37. {
  38. GivePlayerCash(playerid, 50000);
  39. SendClientMessage(playerid, COLOR_RED, "Òè ñïå÷åëè $50000$");
  40. PlayerInfo[playerid][pHealme] = 5*60;
  41. }
  42. if(listitem == 3)
  43. {
  44.  
  45. SendClientMessage(playerid, COLOR_RED, "Òè Çàãóáè");
  46. PlayerInfo[playerid][pHealme] = 5*60;
  47. }
  48. if(listitem == 4)
  49. {
  50.  
  51. SendClientMessage(playerid, COLOR_RED, "Òè Çàãóáè");
  52. PlayerInfo[playerid][pHealme] = 5*60;
  53. }
  54. if(listitem == 5)
  55. {
  56.  
  57. SendClientMessage(playerid, COLOR_RED, "Òè Çàãóáè");
  58. PlayerInfo[playerid][pHealme] = 5*60;
  59. }
  60. }
  61. }
  62. if(dialogid == 678)
  63. {
  64. if(response)
  65. {
  66. if(listitem == 0)
  67. {
  68. SetPlayerHealth(playerid, 100);
  69. SetPlayerArmour(playerid, 100);
  70. ShowPlayerDialog(playerid, 678, DIALOG_STYLE_LIST,"Car Shop","Health+Armour\nSwat weapons\nSwat Skin\nRepair the vehicle\nARMORED MODE","Select","Cancel");
  71. }
  72. if(listitem == 1)
  73. {
  74. GivePlayerGun(playerid, 24);
  75. GivePlayerGun(playerid, 26);
  76. GivePlayerGun(playerid, 28);
  77. GivePlayerGun(playerid, 34);
  78. GivePlayerGun(playerid, 43);
  79. GivePlayerGun(playerid, 38);
  80. SendClientMessage(playerid, COLOR_RED, "Òè ñè âçå swat weapons!");
  81. ShowPlayerDialog(playerid, 678, DIALOG_STYLE_LIST,"Car Shop","Health+Armour\nSwat weapons\nSwat Skin\nRepair the vehicle\nARMORED MODE","Select","Cancel");
  82. }
  83. if(listitem == 2)
  84. {
  85. SetPlayerSkin(playerid, 285);
  86. SendClientMessage(playerid, COLOR_RED, "Òè ñè âçå äðåõèòå íà swat members!");
  87. ShowPlayerDialog(playerid, 678, DIALOG_STYLE_LIST,"Car Shop","Health+Armour\nSwat weapons\nSwat Skin\nRepair the vehicle\nARMORED MODE","Select","Cancel");
  88. }
  89. if(listitem == 3)
  90. {
  91. new vehicleid = GetPlayerVehicleID(playerid);
  92. SetVehicleHealth(vehicleid, 1000);
  93. SendClientMessage(playerid, COLOR_RED, "Òè ïîïðàâè êîëàòà!");
  94. ShowPlayerDialog(playerid, 678, DIALOG_STYLE_LIST,"Car Shop","Health+Armour\nSwat weapons\nSwat Skin\nRepair the vehicle\nARMORED MODE","Select","Cancel");
  95.  
  96. }
  97. if(listitem == 4)
  98. {
  99. new vehicleid = GetPlayerVehicleID(playerid);
  100. SetVehicleHealth(vehicleid, 150000);
  101. SendClientMessage(playerid, COLOR_RED, "Òè âêëþ÷è áðîíèðàíàòà çàùèòà!");
  102. ShowPlayerDialog(playerid, 678, DIALOG_STYLE_LIST,"Car Shop","Health+Armour\nSwat weapons\nSwat Skin\nRepair the vehicle\nARMORED MODE","Select","Cancel");
  103. }
  104. }
  105. }
  106. if(dialogid == 12346 || dialogid == 12347)
  107. {
  108. if(response)
  109. {
  110. if(strlen(inputtext))
  111. {
  112. new tmppass[64];
  113. strmid(tmppass, inputtext, 0, strlen(inputtext), 255);
  114. OnPlayerLogin(playerid,tmppass);
  115. }
  116. else
  117. {
  118. new loginstring[256];
  119. SendClientMessage(playerid, COLOR_WHITE, "SERVER: Òðÿáâà äà âúâåäåø òâîÿòà ïàðîëà");
  120. format(loginstring,sizeof(loginstring),"[ B-U-L-G-A-R-I-A-N ][UNIQUE][ S-E-R-V-E-R][0.3]\nÒîâà èìå å ðåãèñòðèðàíî. Ìîëÿ, âúâåäè òâîÿòà ïàðîëà.");
  121. ShowPlayerDialog(playerid,12347,DIALOG_STYLE_INPUT,"Login",loginstring,"Login","Exit");
  122. }
  123. }
  124. else
  125. {
  126. Kick(playerid);
  127. }
  128. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement