Raised This Month: $51 Target: $400
 12% 

Hooking SV_ConnectClient


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Stolenko
Junior Member
Join Date: Apr 2014
Old 05-11-2014 , 12:32   Hooking SV_ConnectClient
Reply With Quote #1

I hooked function, but do not know how to get information about player


pawn:
Code:
public OrpheuHookReturn:OnSV_ConnectClient ( )
{
	static szInfo[512], szName[ 32 ], iPos, iCount, iFlags;

	read_args ( szInfo, charsmax( szInfo ) );
How to do it in c?

Last edited by Stolenko; 05-11-2014 at 12:34.
Stolenko is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 05-11-2014 , 12:58   Re: Hooking SV_ConnectClient
Reply With Quote #2

PHP Code:
static cell AMX_NATIVE_CALL read_args(AMX *amxcell *params/* 2 param */
{
const 
charsValue CMD_ARGS();
return 
set_amxstring(amxparams[1], sValue sValue ""params[2]);

__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Stolenko
Junior Member
Join Date: Apr 2014
Old 05-11-2014 , 13:04   Re: Hooking SV_ConnectClient
Reply With Quote #3

Quote:
Originally Posted by Bos93 View Post
PHP Code:
static cell AMX_NATIVE_CALL read_args(AMX *amxcell *params/* 2 param */
{
const 
charsValue CMD_ARGS();
return 
set_amxstring(amxparams[1], sValue sValue ""params[2]);

thanks

//closed
Stolenko 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 17:37.


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