Raised This Month: $ Target: $400
 0% 

"Disconnected" plugin help requested.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Dwarfcannon
Junior Member
Join Date: Sep 2008
Old 09-22-2008 , 13:33   "Disconnected" plugin help requested.
Reply With Quote #1

Anyway, heres the code
Code:
public bool:OnClientConnect(Client, String:Reject[], Len)
{

    //Disable:
    Loaded[Client] = true;
}
Its from Pinkfaerie HL2DM RP and i havent got a response yet. Basically i have to fix something in OnClientConnect but what? 0.o (Script newbie requesting help)
Dwarfcannon is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 09-22-2008 , 13:37   Re: "Disconnected" plugin help requested.
Reply With Quote #2

return true or false depending if you want the client to be allowed into the server or not.
bl4nk is offline
Dwarfcannon
Junior Member
Join Date: Sep 2008
Old 09-22-2008 , 13:47   Re: "Disconnected" plugin help requested.
Reply With Quote #3

You mind rewriting the code a bit for me so it wouldn't Disconnect? Because i almost didn't understand a thing 0.o as i said total newbie...
Dwarfcannon is offline
bl4nk
SourceMod Developer
Join Date: Jul 2007
Old 09-22-2008 , 14:03   Re: "Disconnected" plugin help requested.
Reply With Quote #4

Code:
public bool:OnClientConnect(Client, String:Reject[], Len)
{

    //Disable:
    Loaded[Client] = true;
    return true;
}
That would allow the client into the server. Simply change the "Reject" string to be what you want and return false to deny them access to the server with a special message.
bl4nk is offline
Dwarfcannon
Junior Member
Join Date: Sep 2008
Old 09-22-2008 , 14:19   Re: "Disconnected" plugin help requested.
Reply With Quote #5

THANK YOU SOOO MUCH! Your my favourite SM Developer atm ;)
Dwarfcannon is offline
Reply



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 02:35.


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