Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #if defined _TEST_INCLUDED
- #endinput
- #endif
- #define _TEST_INCLUDED
- #pragma library Plugin
- #include <a_samp>
- native ShowADialog(playerid, dialogid,const ueberschrift[], const str1[], const str2[], const str3[], const str4[], colorcode);
- native HideADialog(playerid);
- native ReturnADialogStatus(Text:clickedid);
- native LoadADialog();
- native GetADialogID(playerid);
- native SetJetpackForPlayer(playerid, bool:toggle);
- native SetJetpackForAll(bool:toggle);
- forward _OnGameModeInit();
- public OnGameModeInit()
- {
- LoadADialog();
- print("Alle Dialoge wurden Erfolgreich Eingefügt!");
- return CallLocalFunction("_OnGameModeInit", "");
- }
- #if defined _ALS_OnGameModeInit
- #undef OnGameModeInit
- #else
- #define _ALS_OnGameModeInit
- #endif
- #define OnGameModeInit _OnGameModeInit
- forward _OnPlayerClickTextDraw(playerid, Text:clickedid);
- public OnPlayerClickTextDraw(playerid, Text:clickedid)
- {
- if(ReturnADialogStatus(clickedid) >= 1) { CallLocalFunction("OnADialogResponse","iii",playerid,GetADialogID(playerid), ReturnADialogStatus(clickedid)); }
- return 1;
- }
- #if defined _ALS_OnPlayerClickTextDraw
- #undef OnPlayerClickTextDraw
- #else
- #define _ALS_OnPlayerClickTextDraw
- #endif
- #define OnPlayerClickTextDraw _OnPlayerClickTextDraw
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement