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

C++ Server Plugin : KICK !


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
jeanlepail
Member
Join Date: Nov 2005
Location: Paris France
Old 12-03-2005 , 15:40   C++ Server Plugin : KICK !
Reply With Quote #1

how i can kick player with reason ? (please don't answer : ClientCommand(pEntity,"disconnect") )
thx a lot
__________________
TK's Management : Finish
Bet Plugin : 90 %
jeanlepail is offline
Send a message via AIM to jeanlepail Send a message via MSN to jeanlepail
BeetleFart
SourceMod Donor
Join Date: Apr 2004
Old 12-03-2005 , 16:33   Re: C++ Server Plugin : KICK !
Reply With Quote #2

Quote:
Originally Posted by jeanlepail
how i can kick player with reason ? (please don't answer : ClientCommand(pEntity,"disconnect") )
thx a lot
engine->ClientPrintf(pEntity,strReason);
char buffer[100];
IPlayerInfo * playerinfo=playerinfomanager->GetClientInfo(pEntity);
if (playerinfo)
{
Q_snprintf(buffer,100,"kickid %d\n",playerinfo->GetUserId());
engine->ServerCommand(buffer);
}
__________________
CSource Server:
69.90.34.10:27015 Beetlesmod.com And CS-Addicts{US}



http://www.clanuseast.com
BeetleFart is offline
jeanlepail
Member
Join Date: Nov 2005
Location: Paris France
Old 12-07-2005 , 17:56  
Reply With Quote #3

hum, ClientPrintf just show a console message ! but when u get HPK on Mani's u can see a window which say "Your ping is too high, refere www.site.com"
__________________
TK's Management : Finish
Bet Plugin : 90 %
jeanlepail is offline
Send a message via AIM to jeanlepail Send a message via MSN to jeanlepail
za_bullet
Junior Member
Join Date: Nov 2005
Old 12-27-2005 , 07:13  
Reply With Quote #4

Beetlefart failed to mention that kickid takes 2 parameters

Code:
kickid <player_id> <reason>
That should work for you!

D.
za_bullet is offline
Send a message via AIM to za_bullet
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 06:20.


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