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

Hooking SV_ConnectClient on Reapi (rehlds)


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Old.School
Senior Member
Join Date: Sep 2015
Location: France
Old 07-11-2018 , 10:17   Hooking SV_ConnectClient on Reapi (rehlds)
Reply With Quote #1

how to hook SV_ConnectClient using reapi and any one got link to reapi similar functions of orpheu ?
thnx anyway
__________________
You keep bringing B.R down .. He will rise again and kick Enemies asses !
Old.School is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 07-11-2018 , 10:23   Re: Hooking SV_ConnectClient on Reapi (rehlds)
Reply With Quote #2

What exactly you need to do?
in AMXX have same hook that you can block / hook some params
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Old.School
Senior Member
Join Date: Sep 2015
Location: France
Old 07-11-2018 , 10:36   Re: Hooking SV_ConnectClient on Reapi (rehlds)
Reply With Quote #3

i wanna use it for admin slot reservation to make a random player kicked if any admin join (when server is full) and try to force cl_allowdownload 1 (i think its not slowhacking cause this command aint used for bad things..)
__________________
You keep bringing B.R down .. He will rise again and kick Enemies asses !
Old.School is offline
HamletEagle
AMX Mod X Plugin Approver
Join Date: Sep 2013
Location: Romania
Old 07-11-2018 , 10:43   Re: Hooking SV_ConnectClient on Reapi (rehlds)
Reply With Quote #4

Quote:
Originally Posted by Old.School View Post
i wanna use it for admin slot reservation to make a random player kicked if any admin join (when server is full) and try to force cl_allowdownload 1 (i think its not slowhacking cause this command aint used for bad things..)
It's still slowhacking.
__________________
HamletEagle is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 07-11-2018 , 10:59   Re: Hooking SV_ConnectClient on Reapi (rehlds)
Reply With Quote #5

Quote:
Originally Posted by Old.School View Post
i wanna use it for admin slot reservation to make a random player kicked if any admin join (when server is full) and try to force cl_allowdownload 1 (i think its not slowhacking cause this command aint used for bad things..)
Do not make sense, since:

1. Default amxx already do slot reservation and kick an player if server is full if i remember (If not, is easy to do)
2. cl_allowdownload will not let player enter if he do not have downloaded files from server. If player really want to enter, is only allow download to not make sense force this cvar on players anyway.
3. It still slowhack
4. You do not need to hook any function than default client_connect to do it.

There is 4 reasons, but the last i suspect is to work with a non-steam?
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 

Last edited by ^SmileY; 07-11-2018 at 11:01.
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Old.School
Senior Member
Join Date: Sep 2015
Location: France
Old 07-11-2018 , 11:14   Re: Hooking SV_ConnectClient on Reapi (rehlds)
Reply With Quote #6

Quote:
Originally Posted by HamletEagle View Post
It's still slowhacking.
player will can't even join the server and there are some newbies doesn't know how to allow download

Quote:
Originally Posted by ^SmileY View Post
Do not make sense, since:

1. Default amxx already do slot reservation and kick an player if server is full if i remember (If not, is easy to do)
2. cl_allowdownload will not let player enter if he do not have downloaded files from server. If player really want to enter, is only allow download to not make sense force this cvar on players anyway.
3. It still slowhack
4. You do not need to hook any function than default client_connect to do it.

There is 4 reasons, but the last i suspect is to work with a non-steam?

1. Default amxx Slot Reservation just reserve a slot means when server only 31/32 only the admins will can join to the server. and what i wanna do is to make the server 32/32 than if any admin join using console a random player get kicked..
2. like i said some players doesn't know how to allow download that why i'm try to use reapi
3. without this command some players will can't even join but OK no prob
4. using cl_allowdownload 0 player will can't even reach client_connect so i need to use reapi..
5. you got no reason to suspect that i have no steam server else you're just going off topic nothing else its some thing like to be :
- Good Morning
- I Like it too
LOL
__________________
You keep bringing B.R down .. He will rise again and kick Enemies asses !

Last edited by Old.School; 07-11-2018 at 11:16.
Old.School is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 07-11-2018 , 12:13   Re: Hooking SV_ConnectClient on Reapi (rehlds)
Reply With Quote #7

Still be not supported here

1. IT still slowhack, and do not make sense since newbie clients never change cl_allowdownload from the default "1", if some player change it ti is because he know how to activate it again
2. SV_ConnectClient still not work if the player is not entered in server, you can't just set a cvar or send an command from players that is not connected to server anyway.
3. About slot, i will say it again: Can be easily done

You have create a problem that is not exists in a normal way
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Old.School
Senior Member
Join Date: Sep 2015
Location: France
Old 07-11-2018 , 13:51   Re: Hooking SV_ConnectClient on Reapi (rehlds)
Reply With Quote #8

1. already said OK no prob...
2. no it works tested SV_ConnectClient method but using orpheu..
3. i need to make it auto (no website button or something like that)

i just asked for reapi SV_ConnectClient hook method but thnx anyway
__________________
You keep bringing B.R down .. He will rise again and kick Enemies asses !
Old.School is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 07-11-2018 , 14:40   Re: Hooking SV_ConnectClient on Reapi (rehlds)
Reply With Quote #9

You can hook SV_ConnectClient, but never can send a command to client that is not connected even if use reapi.
You can send a message to client when he connect to get server files.

I suggest a message like this



here: https://forums.alliedmods.net/showthread.php?p=816224
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
Old.School
Senior Member
Join Date: Sep 2015
Location: France
Old 07-11-2018 , 15:22   Re: Hooking SV_ConnectClient on Reapi (rehlds)
Reply With Quote #10

i know.but u didn't understand me aswell clients reach SV_ConnectClient before sv is full kick thats why i wanna use it can u tell how to hook it and thnx so mush for the suggestion
__________________
You keep bringing B.R down .. He will rise again and kick Enemies asses !
Old.School 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 00:25.


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