Advertisement
Guest User

Error Dialog

a guest
Aug 20th, 2013
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.79 KB | None | 0 0
  1. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  2. {
  3. if(dialogid == 10)
  4. {
  5. if(response)
  6. {
  7. if(listitem == 0)
  8. {
  9. SendClientMessage(playerid, Bianco,"Uso: digita '/daisoldi [ID] [Soldi]'");
  10. return 1;
  11. }
  12. if(listitem == 1)
  13. {
  14. if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, 0xFFFFFFF,"{00FF00}[Errore:]{FFFFFF} Non sei un amministratore!");
  15. SendClientMessage(playerid, Bianco, "-----------| Killatore: |-----------");
  16. SendClientMessage(playerid, Bianco, "Come da te scelto, hai ottenuto il Killatore.");
  17. SendClientMessage(playerid, Bianco, "-----------| |-----------");
  18. GivePlayerWeapon(playerid,23,9999);
  19. return 1;
  20. }
  21. if(listitem == 2)
  22. {
  23. SendClientMessage(playerid, Bianco,"Uso: digita ' /settaskin [ID] [Skin]");
  24. }
  25. if(listitem == 3)
  26. {
  27. SendClientMessage(playerid, Bianco,"Uso: digita ' /cura [ID]");
  28. }
  29. if(listitem == 4)
  30. {
  31. {
  32. if (IsPlayerAdmin(playerid))
  33. {
  34. for(new i=0;i<MAX_VEHICLES;i++)
  35. {
  36. if(IsVehicleOccupied(i) == 0)
  37. {
  38. SetVehicleToRespawn(i);
  39. }
  40. }
  41. new name[MAX_PLAYER_NAME+1], string[100+MAX_PLAYER_NAME+1];
  42. GetPlayerName(playerid, name, sizeof(name));
  43.  
  44. format(string, sizeof(string), "{00FF00}[Informazione:]{FFFFFF} Veicoli respawnati con successo da {33CCFF} %s.", name);
  45. SendClientMessageToAll(0xC4C4C4FF, string);
  46. }
  47. else
  48. {
  49. SendClientMessage(playerid,Bianco, "{00FF00}[Errore:]{FFFFFF} Non sei un amministratore!");
  50. }
  51. return 1;
  52. }
  53. }
  54. }
  55. if(dialogid == 11)
  56. {
  57. if(response)
  58. {
  59. if(listitem == 0)
  60. {
  61. new String[256],NomeLoggato[24];
  62. GetPlayerName(playerid,NomeLoggato,24);
  63. format(String,256,"' %s ' si è gotato a Salto (/teleports)",NomeLoggato);
  64. SendClientMessageToAll(0xAA3333AA,String);
  65. SetPlayerPos(playerid, 2067.4763,1609.3029,3093.7717);
  66. SetPlayerFacingAngle( playerid, 90.2003 );
  67. SendClientMessage(playerid, Bianco, "Consiglio: Buttati di sotto con o senza paracadute. ");
  68. SendClientMessage(playerid, Bianco, "Consiglio2: Se vuoi il paracadute, fai '/para'");
  69. return 1;
  70. }
  71. if(listitem == 1)
  72. {
  73. new String[256],NomeLoggato[24];
  74. GetPlayerName(playerid,NomeLoggato,24);
  75. format(String,256,"' %s ' si è gotato a Salto2 (/teleports)",NomeLoggato);
  76. SendClientMessageToAll(0xAA3333AA,String);
  77. SetPlayerPos(playerid,1573.7509,-1020.6570,1808.7555);
  78. SetPlayerFacingAngle(playerid, 354.8444);
  79. SetPlayerInterior(playerid, 0);
  80. SendClientMessage(playerid, Bianco, "Consiglio: Buttati di sotto con o senza paracadute. ");
  81. SendClientMessage(playerid, Bianco, "Consiglio2: Se vuoi il paracadute, fai '/para'");
  82. return 1;
  83. }
  84. if(listitem == 2)
  85. {
  86. new String[256],NomeLoggato[24];
  87. GetPlayerName(playerid,NomeLoggato,24);
  88. format(String,256,"' %s ' si è gotato a Barca (/teleports)",NomeLoggato);
  89. SendClientMessageToAll(0xAA3333AA,String);
  90. SetPlayerPos(playerid, 3184.1182,-3217.1106,767.9109);
  91. SetPlayerFacingAngle( playerid, 272.9579 );
  92. SendClientMessage(playerid, Bianco, "Consiglio: Buttati di sotto con o senza paracadute oppure stai sulla nave. ");
  93. SendClientMessage(playerid, Bianco, "Consiglio2: Se vuoi il paracadute, fai '/para'");
  94. return 1;
  95. }
  96. if(listitem == 3)
  97. {
  98. new String[256],NomeLoggato[24];
  99. GetPlayerName(playerid,NomeLoggato,24);
  100. format(String,256,"' %s ' si è gotato a DM Barchece(/teleports)",NomeLoggato);
  101. SendClientMessageToAll(0xAA3333AA,String);
  102. ResetPlayerWeapons(playerid);
  103. GivePlayerWeapon(playerid,8,1);
  104. new rand = random(sizeof(RandomSpawn));
  105. SetPlayerPos(playerid, RandomSpawn[rand][0], RandomSpawn[rand][1],RandomSpawn[rand][2]);
  106. SetPlayerFacingAngle(playerid, RandomSpawn[rand][3]);
  107. SendClientMessage(playerid, Bianco, "Consiglio: Uccidi i nemici conquistando la loro base. ");
  108. SendClientMessage(playerid, Bianco, "Consiglio2: Se vuoi uscire fai /respawn.");
  109. return 1;
  110. }
  111. if(listitem == 4)
  112. {
  113. new String[256],NomeLoggato[24];
  114. GetPlayerName(playerid,NomeLoggato,24);
  115. format(String,256,"' %s ' si è gotato a DM Carro Armato(/teleports)",NomeLoggato);
  116. SendClientMessageToAll(0xAA3333AA,String);
  117. new rand = random(sizeof(RandomSpawn));
  118. SetPlayerPos(playerid, RandomSpawn2[rand][0], RandomSpawn2[rand][1],RandomSpawn2[rand][2]);
  119. SetPlayerFacingAngle(playerid, RandomSpawn2[rand][3]);
  120. SetPlayerSkin(playerid,287);
  121. SetPlayerHealth(playerid, 100);
  122. GivePlayerWeapon(playerid,31,250);
  123. GivePlayerWeapon(playerid,36,10);
  124. SendClientMessage(playerid, Bianco, "Consiglio: Entra nel carr'armato e uccidi tutti oppure spara la gente. ");
  125. SendClientMessage(playerid, Bianco, "Consiglio2: Se vuoi uscire, fai '/respawn'");
  126. }
  127. }
  128. }
  129. }
  130. return 1;
  131. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement