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

Commit

Permalink
Fixed The Target is not being kicked.
Browse files Browse the repository at this point in the history
Fixed The Target is not being kicked, but the player that used !ban command :P
  • Loading branch information
SmileYzn committed Apr 25, 2015
1 parent 671ff21 commit cbc5c1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripting/PugDB.sma
Original file line number Diff line number Diff line change
Expand Up @@ -326,14 +326,14 @@ public PugCommandBan(id,iLevel,iCid)
new sRemain[32];
PugGetBanTimeLeft(iLength,sRemain,charsmax(sRemain));

PugDisconnect(id,"%L",LANG_SERVER,"PUG_DB_BANNED_TEMP",sReason,sDate,sRemain);
PugDisconnect(iPlayer,"%L",LANG_SERVER,"PUG_DB_BANNED_TEMP",sReason,sDate,sRemain);
}
else
{
new sContact[32];
get_pcvar_string(g_pContact,sContact,charsmax(sContact));

PugDisconnect(id,"%L",LANG_SERVER,"PUG_DB_BANNED_PERM",sReason,sDate,sContact);
PugDisconnect(iPlayer,"%L",LANG_SERVER,"PUG_DB_BANNED_PERM",sReason,sDate,sContact);
}
}
}
Expand Down

0 comments on commit cbc5c1c

Please sign in to comment.