Make ForumIntegration request username, and thus use this in listwinners to make the whole thing async.

Rework listwinners (reward) plugin so now it's async and simple.

go back to ded
This commit is contained in:
Rawrington
2021-08-21 20:54:00 +01:00
parent 8405bc52f2
commit 72f2d3168e
3 changed files with 96 additions and 251 deletions
+2
View File
@@ -10,6 +10,7 @@ typeset AsyncHasSteamIDReservedSlotCallbackFunc
};
native void AsyncHasSteamIDReservedSlot(const char[] sSteam32ID, AsyncHasSteamIDReservedSlotCallbackFunc Callback, any Data = 0);
native void GetClientForumName(int client, char[] sName, int len);
public SharedPlugin __pl_UNLOZE_ForumIntegration =
{
@@ -26,5 +27,6 @@ public SharedPlugin __pl_UNLOZE_ForumIntegration =
public __pl_UNLOZE_ForumIntegration_SetNTVOptional()
{
MarkNativeAsOptional("AsyncHasSteamIDReservedSlot");
MarkNativeAsOptional("GetClientForumName");
}
#endif