Guest User

Untitled

a guest
Jun 12th, 2011
347
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.87 KB | None | 0 0
  1. //============================= Finde die Statue ========================//
  2. //============================= Find the Statue =========================//
  3. //=================================by WarF ==============================//
  4. //=======================================================================//
  5. //=======================================================================//
  6. //=======================================================================//
  7.  
  8. //================ Sonstiges ==================
  9. #define FILTERSCRIPT/
  10. #include <a_samp>
  11. #if defined FILTERSCRIPT
  12.  
  13. //================ Farben =====================
  14. #define COLOR_ROT 0xAA3333AA
  15. #define COLOR_BLAU 0x3A47DEFF
  16.  
  17.  
  18. //================= News ======================
  19. new StatuePickup;
  20.  
  21.  
  22.  
  23. //============ OnPlayerCommandText ============
  24.  
  25. public OnPlayerCommandText(playerid, cmdtext[])
  26. {
  27. if (strcmp("/statuelegen", cmdtext, true, 10) == 0)
  28. {
  29. ShowPlayerDialog(playerid,1,DIALOG_STYLE_MSGBOX,"Finde die Statue", "Möchtest du wirklich eine Statue\nplatzieren?", "Aber Sicher", "Nein Doch nicht");
  30. return 1;
  31. }
  32.  
  33. return 0;
  34. }
  35.  
  36.  
  37.  
  38.  
  39. //============ OnDialogResponse =============
  40.  
  41. public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
  42. {
  43. if(dialogid == 1)
  44. {
  45. new Float:x, Float:y, Float:z;
  46. if(response)
  47. {
  48. GetPlayerPos(playerid, x, y, z);
  49. StatuePickup = CreatePickup(1276, 23, x+2, y, z);
  50. SendClientMessage(playerid, COLOR_BLAU, "Die Statue wurde platziert!!");
  51. }
  52. }
  53. return 1;
  54. }
  55.  
  56.  
  57.  
  58.  
  59. //============ OnPlayerPickup =============
  60.  
  61. public OnPlayerPickUpPickup(playerid, pickupid)
  62. {
  63. if(pickupid == StatuePickup)
  64. {
  65. DestroyPickup(StatuePickup);
  66. new a1[128];
  67. GetPlayerName(playerid, a1, sizeof(a1));
  68. format(a1, sizeof(a1), "~g~ %s ~g~hat die ~r~Statue ~g~GEFUNDEN", a1);
  69. GameTextForAll(a1,2000,1);
  70. }
  71. return 1;
  72. }
  73. #endif
Advertisement
Add Comment
Please, Sign In to add comment