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

Commit cbc5c1c

Browse files
committed
Fixed The Target is not being kicked.
Fixed The Target is not being kicked, but the player that used !ban command :P
1 parent 671ff21 commit cbc5c1c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripting/PugDB.sma

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -326,14 +326,14 @@ public PugCommandBan(id,iLevel,iCid)
326326
new sRemain[32];
327327
PugGetBanTimeLeft(iLength,sRemain,charsmax(sRemain));
328328

329-
PugDisconnect(id,"%L",LANG_SERVER,"PUG_DB_BANNED_TEMP",sReason,sDate,sRemain);
329+
PugDisconnect(iPlayer,"%L",LANG_SERVER,"PUG_DB_BANNED_TEMP",sReason,sDate,sRemain);
330330
}
331331
else
332332
{
333333
new sContact[32];
334334
get_pcvar_string(g_pContact,sContact,charsmax(sContact));
335335

336-
PugDisconnect(id,"%L",LANG_SERVER,"PUG_DB_BANNED_PERM",sReason,sDate,sContact);
336+
PugDisconnect(iPlayer,"%L",LANG_SERVER,"PUG_DB_BANNED_PERM",sReason,sDate,sContact);
337337
}
338338
}
339339
}

0 commit comments

Comments
 (0)