Skip to content
This repository was archived by the owner on Oct 30, 2019. It is now read-only.

Commit a556694

Browse files
CleversonCleverson
authored andcommitted
Removed PugDisconnect Stock
We will use kick command from HLDS to make a improvement for Leaver ban function
1 parent eee395f commit a556694

File tree

1 file changed

+0
-17
lines changed

1 file changed

+0
-17
lines changed

addons/amxmodx/scripting/include/PugStocks.inc

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -86,23 +86,6 @@ stock PugAdminCommandClient(id,sCommand[],sLang[],iClient,iCheck)
8686
client_print_color(id,print_team_red,"%s %L",g_sHead,LANG_PLAYER,iCheck ? "PUG_CMD_SUCCESS" : "PUG_CMD_FAILURE",sCommand);
8787
}
8888

89-
stock PugDisconnect(const id,const sReason[] = "",any:...)
90-
{
91-
if(sReason[0])
92-
{
93-
new sMessage[192];
94-
vformat(sMessage,charsmax(sMessage),sReason,3);
95-
96-
message_begin(MSG_ONE_UNRELIABLE,SVC_DISCONNECT,_,id);
97-
write_string(sMessage);
98-
message_end();
99-
}
100-
else
101-
{
102-
server_cmd("kick #%i",get_user_userid(id));
103-
}
104-
}
105-
10689
stock PugGetPercent(iValue,tValue)
10790
{
10891
return floatround(floatmul(float(iValue) / float(tValue),100.0));

0 commit comments

Comments
 (0)