Advertisement
Guest User

Include Source 1.0.2

a guest
Jan 7th, 2013
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.42 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. native SendClientMessageForPVar(colorcode,const nachricht[], const pvar[], mindwert, maxwert);
  16. native SendClientMessageForInt(colorcode,const nachricht[], varriable, mindwert, maxwert);
  17.  
  18. forward _OnGameModeInit();
  19. public OnGameModeInit()
  20. {
  21. LoadADialog();
  22. print("Alle Dialoge wurden Erfolgreich Eingefügt!");
  23. return CallLocalFunction("_OnGameModeInit", "");
  24. }
  25. #if defined _ALS_OnGameModeInit
  26. #undef OnGameModeInit
  27. #else
  28. #define _ALS_OnGameModeInit
  29. #endif
  30. #define OnGameModeInit _OnGameModeInit
  31.  
  32.  
  33.  
  34. forward _OnPlayerClickTextDraw(playerid, Text:clickedid);
  35. public OnPlayerClickTextDraw(playerid, Text:clickedid)
  36. {
  37. if(ReturnADialogStatus(clickedid) >= 1) { CallLocalFunction("OnADialogResponse","iii",playerid,GetADialogID(playerid), ReturnADialogStatus(clickedid)); }
  38. return 1;
  39. }
  40. #if defined _ALS_OnPlayerClickTextDraw
  41. #undef OnPlayerClickTextDraw
  42. #else
  43. #define _ALS_OnPlayerClickTextDraw
  44. #endif
  45. #define OnPlayerClickTextDraw _OnPlayerClickTextDraw
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement