Advertisement
Guest User

Include Source

a guest
Jan 6th, 2013
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.24 KB | None | 0 0
  1. #if defined _TEST_INCLUDED
  2. #endinput
  3. #endif
  4. #define _TEST_INCLUDED
  5. #pragma library Plugin
  6.  
  7. #include <a_samp>
  8. native ShowADialog(playerid, dialogid,const ueberschrift[], const str1[], const str2[], const str3[], const str4[], colorcode);
  9. native HideADialog(playerid);
  10. native ReturnADialogStatus(Text:clickedid);
  11. native LoadADialog();
  12. native GetADialogID(playerid);
  13. native SetJetpackForPlayer(playerid, bool:toggle);
  14. native SetJetpackForAll(bool:toggle);
  15.  
  16.  
  17. forward _OnGameModeInit();
  18. public OnGameModeInit()
  19. {
  20. LoadADialog();
  21. print("Alle Dialoge wurden Erfolgreich Eingefügt!");
  22. return CallLocalFunction("_OnGameModeInit", "");
  23. }
  24. #if defined _ALS_OnGameModeInit
  25. #undef OnGameModeInit
  26. #else
  27. #define _ALS_OnGameModeInit
  28. #endif
  29. #define OnGameModeInit _OnGameModeInit
  30.  
  31.  
  32.  
  33. forward _OnPlayerClickTextDraw(playerid, Text:clickedid);
  34. public OnPlayerClickTextDraw(playerid, Text:clickedid)
  35. {
  36. if(ReturnADialogStatus(clickedid) >= 1) { CallLocalFunction("OnADialogResponse","iii",playerid,GetADialogID(playerid), ReturnADialogStatus(clickedid)); }
  37. return 1;
  38. }
  39. #if defined _ALS_OnPlayerClickTextDraw
  40. #undef OnPlayerClickTextDraw
  41. #else
  42. #define _ALS_OnPlayerClickTextDraw
  43. #endif
  44. #define OnPlayerClickTextDraw _OnPlayerClickTextDraw
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement