Advertisement
Guest User

filterscript_fix.inc

a guest
May 2nd, 2015
407
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.89 KB | None | 0 0
  1. #if defined FILTERSCRIPT_FIX_INCLUDED
  2.     #endinput
  3. #endif
  4. #define FILTERSCRIPT_FIX_INCLUDED   (true)
  5.  
  6. #include <a_samp>
  7.  
  8. new ReloadFS = 0;
  9.  
  10. forward FSF_OnGameModeInit();
  11. public OnGameModeInit()
  12. {
  13.     if( ReloadFS && funcidx("OnFilterScriptInit") != -1 )
  14.         CallLocalFunction("OnFilterScriptInit", "");
  15.  
  16.     if( funcidx("FSF_OnGameModeInit") != -1 )
  17.         CallLocalFunction("FSF_OnGameModeInit", "");
  18.  
  19.     return 1;
  20. }
  21. #if defined ALS_OnGameModeInit
  22.     #undef OnGameModeInit
  23. #endif
  24. #define OnGameModeInit FSF_OnGameModeInit
  25.  
  26.  
  27. forward FSF_OnGameModeExit();
  28. public OnGameModeExit()
  29. {
  30.     if( funcidx("FSF_OnGameModeExit") != -1 )
  31.         CallLocalFunction("FSF_OnGameModeExit", "");
  32.  
  33.     if( funcidx("OnFilterScriptExit") != -1 )
  34.         CallLocalFunction("OnFilterScriptExit", "");
  35.  
  36.     ReloadFS = 1;
  37.  
  38.     return 1;
  39. }
  40. #if defined ALS_OnGameModeExit
  41.     #undef OnGameModeExit
  42. #endif
  43. #define OnGameModeExit FSF_OnGameModeExit
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement