Advertisement
Hauke

WBB_Connect 2.0 - Include

May 18th, 2012
709
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 7.83 KB | None | 0 0
  1. // WBB_Connect 2.0 include by Hauke Marquardt alias |-|auke - 19.05.2012
  2. /*
  3. License:
  4.         This code is free: you can redistribute it and/or modify
  5.         it under the terms of the GNU General Public License as published by
  6.         the Free Software Foundation, either version 3 of the License, or
  7.         (at your option) any later version.
  8.  
  9.         This code is distributed in the hope that it will be useful,
  10.         but WITHOUT ANY WARRANTY; without even the implied warranty of
  11.         MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  12.         GNU General Public License for more details.
  13.  
  14.         You should have received a copy of the GNU General Public License
  15.         along with this program.  If not, see <http://www.gnu.org/licenses/>.
  16.         You´re not allowed to copy any code from this, into your code without
  17.         naming authors name in credits!
  18. */
  19. #if defined _wbb_connect_included
  20.     #endinput
  21. #endif
  22.  
  23. #define THREAD_STATE_NORMAL                 0
  24. #define THREAD_STATE_IMPORTANT              1
  25. #define THREAD_STATE_ANNOUNCEMENT           2
  26.  
  27. #if !defined _h_library_norm_included
  28.     #define PAWN_TYPE_INT                   1
  29.     #define PAWN_TYPE_FLOAT                 2
  30.     #define PAWN_TYPE_ARRAY                 3
  31.     #define _h_library_norm_included
  32. #endif
  33.  
  34. forward WBB_GotPostUser ( Index , Username[ ] );
  35. forward WBB_GotThreadStarter ( Index , Username[ ] );
  36. forward WBB_GotUserActivationCode ( Index , ActivationCode[ ] );
  37. forward WBB_GotUserActivationState ( Index , State );
  38. forward WBB_GotUserAge ( Index , Age );
  39. forward WBB_GotUserFriendState ( Index , State );
  40. forward WBB_GotUserGroupState ( Index , State );
  41. forward WBB_GotUserID ( Index , UserID );
  42. forward WBB_GotUserOnlineState ( Index , State );
  43. forward WBB_GotUserPasswordCheckState ( Index , State );
  44. forward WBB_GotUserTitle ( Index , Title[ ] );
  45. forward WBB_GotUserValidState ( Index , State );
  46. forward WBB_OnInitialize ( State );
  47. forward WBB_PostAdded ( Index );
  48. forward WBB_PostDeleted ( Index );
  49. forward WBB_PostEdited ( Index );
  50. forward WBB_PostTrashed ( Index );
  51. forward WBB_ThreadAdded ( Index , ThreadID );
  52. forward WBB_ThreadDeleted ( Index );
  53. forward WBB_ThreadSticked ( Index );
  54. forward WBB_ThreadUnsticked ( Index );
  55. forward WBB_UserAdded ( Index );
  56. forward WBB_UserAvatarDisabled ( Index );
  57. forward WBB_UserAvatarEnabled ( Index );
  58. forward WBB_UserBanned ( Index );
  59. forward WBB_UserDisabled ( Index );
  60. forward WBB_UserEnabled ( Index );
  61. forward WBB_UserRemovedFromGroup ( Index );
  62. forward WBB_UserSettedToGroup ( Index );
  63. forward WBB_UserSignaturDisabled ( Index );
  64. forward WBB_UserSignaturEnabled ( Index );
  65. forward WBB_UserUnbanned ( Index );
  66.  
  67. stock WBB_Initialize ( Adress[ ] , AuthKey[ ] )
  68.     return CallRemoteFunction ( "_WBB_Initialize" , "ss" , Adress , AuthKey );
  69.  
  70. stock WBB_AddPost ( Username[ ] , Thread , Subject[ ] , Content[ ] , Closed = 0 , Smilies = 1 , HTML = 0 , BBCodes = 1 , Signature = 1 , Index = 0 )
  71.     return CallRemoteFunction ( "_WBB_AddPost" , "sdssdddddd" , Username , Thread , Subject , Content , Closed , Smilies , HTML , BBCodes , Signature , Index );
  72.  
  73. stock WBB_AddThread ( Username[ ] , Board , Prefix[ ] , Subject[ ] , Content[ ] , State = THREAD_STATE_NORMAL , Closed = 0 , Disabled = 0 , Smilies = 1 , HTML = 0 , BBCodes = 1 , Signature = 1 , Index = 0 )
  74.     return CallRemoteFunction ( "_WBB_AddThread" , "sdsssdddddddd" , Username , Board , Prefix , Subject , Content , State , Closed , Disabled , Smilies , HTML , BBCodes , Signature , Index );
  75.  
  76. stock WBB_AddUser ( Username[ ] , Email[ ] , Password[ ] , Index = 0 )
  77.     return CallRemoteFunction ( "_WBB_AddUser" , "sssd" , Username , Email , Password , Index );
  78.  
  79. stock WBB_BanUser ( Username[ ] , Reason[ ] , Index = 0 )
  80.     return CallRemoteFunction ( "_WBB_BanUser" , "ssd" , Username , Reason , Index );
  81.  
  82. stock WBB_CheckUserPassword ( Username[ ] , Password[ ] , Index = 0 )
  83.     return CallRemoteFunction ( "_WBB_CheckUserPassword" , "ssd" , Username , Password , Index );
  84.  
  85. stock WBB_DeletePost ( Post , Index = 0 )
  86.     return CallRemoteFunction ( "_WBB_DeletePost" , "dd" , Post , Index );
  87.  
  88. stock WBB_DeleteThread ( ThreadID , Index = 0 )
  89.     return CallRemoteFunction ( "_WBB_DeleteThread" , "dd" , ThreadID , Index );
  90.  
  91. stock WBB_DisableUser ( Username[ ] , Index = 0 )
  92.     return CallRemoteFunction ( "_WBB_DisableUser" , "sd" , Username , Index );
  93.  
  94. stock WBB_DisableUserAvatar ( Username[ ] , Index = 0 )
  95.     return CallRemoteFunction ( "_WBB_DisableUserAvatar" , "sd" , Username , Index );
  96.  
  97. stock WBB_DisableUserSignatur ( Username[ ] , Index = 0 )
  98.     return CallRemoteFunction ( "_WBB_DisableUserSignatur" , "sd" , Username , Index );
  99.  
  100. stock WBB_EditPost ( Username[ ] , Post , Subject[ ] , Content[ ] , ShowEditInformation , EditReason[ ] , Smilies = 1 , HTML = 0 , BBCodes = 1 , Signature = 1 , Index = 0 )
  101.     return CallRemoteFunction ( "_WBB_EditPost" , "sdssdsddddd" , Username , Post , Subject , Content , ShowEditInformation , EditReason , Smilies , HTML , BBCodes , Signature , Index );
  102.  
  103. stock WBB_EnableUser ( Username[ ] , Index = 0 )
  104.     return CallRemoteFunction ( "_WBB_EnableUser" , "sd" , Username , Index );
  105.  
  106. stock WBB_EnableUserAvatar ( Username[ ] , Index = 0 )
  107.     return CallRemoteFunction ( "_WBB_EnableUserAvatar" , "sd" , Username , Index );
  108.  
  109. stock WBB_EnableUserSignatur ( Username[ ] , Index = 0 )
  110.     return CallRemoteFunction ( "_WBB_EnableUserSignatur" , "sd" , Username , Index );
  111.  
  112. stock WBB_GetPostUser ( Post , Index = 0 )
  113.     return CallRemoteFunction ( "_WBB_GetPostUser" , "dd" , Post , Index );
  114.  
  115. stock WBB_GetThreadUser ( Thread , Index = 0 )
  116.     return CallRemoteFunction ( "_WBB_GetThreadUser" , "dd" , Thread , Index );
  117.  
  118. stock WBB_GetUserActivationCode ( Username[ ] , Index = 0 )
  119.     return CallRemoteFunction ( "_WBB_GetUserActivationCode" , "sd" , Username , Index );
  120.  
  121. stock WBB_GetUserAge ( Username[ ] , Index = 0 )
  122.     return CallRemoteFunction ( "_WBB_GetUserAge" , "sd" , Username , Index );
  123.  
  124. stock WBB_GetUserID ( Username[ ] , Index = 0 )
  125.     return CallRemoteFunction ( "_WBB_GetUserID" , "sd" , Username , Index );
  126.  
  127. stock WBB_GetUserTitle ( Username[ ] , Index = 0 )
  128.     return CallRemoteFunction ( "_WBB_GetUserTitle" , "sd" , Username , Index );
  129.  
  130. stock WBB_IsUserActivated ( Username[ ] , Index = 0 )
  131.     return CallRemoteFunction ( "_WBB_IsUserActivated" , "sd" , Username , Index );
  132.  
  133. stock WBB_IsUserFriendOfUser ( Username[ ] , Friend[ ] , Index = 0 )
  134.     return CallRemoteFunction ( "_WBB_IsUserFriendOfUser" , "ssd" , Username , Friend , Index );
  135.  
  136. stock WBB_IsUserInGroup ( Username[ ] , Group , Index = 0 )
  137.     return CallRemoteFunction ( "_WBB_IsUserInGroup" , "sdd" , Username , Group , Index );
  138.  
  139. stock WBB_IsUserOnline ( Username[ ] , Index = 0 )
  140.     return CallRemoteFunction ( "_WBB_IsUserOnline" , "sd" , Username , Index );
  141.  
  142. stock WBB_IsValidUser ( Username[ ] , Index = 0 )
  143.     return CallRemoteFunction ( "_WBB_IsValidUser" , "sd" , Username , Index );
  144.  
  145. stock WBB_RemoveUserFromGroup ( Username[ ] , Group , Index = 0 )
  146.     return CallRemoteFunction ( "_WBB_RemoveUserFromGroup" , "sdd" , Username , Group , Index );
  147.  
  148. stock WBB_SetUserToGroup ( Username[ ] , Group , Index = 0 )
  149.     return CallRemoteFunction ( "_WBB_SetUserToGroup" , "sdd" , Username , Group , Index );
  150.  
  151. stock WBB_StickThread ( ThreadID , Index = 0 )
  152.     return CallRemoteFunction ( "_WBB_StickThread" , "dd" , ThreadID , Index );
  153.  
  154. stock WBB_TrashPost ( Post , Index = 0 )
  155.     return CallRemoteFunction ( "_WBB_TrashPost" , "dd" , Post , Index );
  156.  
  157. stock WBB_TrashThread ( ThreadID , Index = 0 )
  158.     return CallRemoteFunction ( "_WBB_TrashThread" , "dd" , ThreadID , Index  );
  159.  
  160. stock WBB_UnBanUser ( Username[ ] , Index = 0 )
  161.     return CallRemoteFunction ( "_WBB_UnBanUser" , "sd" , Username , Index );
  162.  
  163. stock WBB_UnstickThread ( ThreadID , Index = 0 )
  164.     return CallRemoteFunction ( "_WBB_UnstickThread" , "dd" , ThreadID , Index )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement