Raised This Month: $32 Target: $400
 8% 

[ANY] SteamWorks


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
RumbleFrog
Great Tester of Whatever
Join Date: Dec 2016
Location: Fish Tank
Old 04-10-2017 , 14:39   Re: [ANY] SteamWorks
Reply With Quote #11

Quote:
Originally Posted by KyleS View Post
You've posted zero code.
As you wish

PHP Code:
public void OnClientPostAdminCheck(int iClient)
{
    if (!
StrEqual(GroupID32"0") && !StrEqual(GroupID32"0.0"))
    {
        if (!
SteamWorks_GetUserGroupStatus(iClientStringToInt(GroupID32)))
        {
            
CPrintToChat(iClient"{lightseagreen}[SGI] {grey}Request overflow. Please try again later.");
            return;
        }
        
        
CPrintToChat(iClient"{lightseagreen}[SGI] {grey}Requesting...");
    }
}

public 
int SteamWorks_OnClientGroupStatus(int authidint groupidbool isMemberbool isOfficer)
{
    
CPrintToChatAll("{lightseagreen}[SGI] {grey}Received Request. %i"groupid);
    
    if (
groupid != StringToInt(GroupID32))
        return;
    
    
int iClient GetUserFromAuthID(authid);    
    
    if (
iClient == -1)
        return;
        
    if (!
isMember && !isOfficer)
    {
        
CPrintToChat(iClient"{lightseagreen}[SGI] {grey}Consider joining our group using !invite.");
        return;
    }
    
    if (
isMember || isOfficer)
    {
        
CPrintToChat(iClient"{lightseagreen}[SGI] {grey}You are in our group, hurray!");
        
InGroup[iClient] = true;
        return;
    }
    

RumbleFrog is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 16:59.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode