Kick System

Status
Not open for further replies.
Level 9
Joined
Apr 7, 2010
Messages
480
ill be using two kick systems for my map, a kick system made by hell gate which allows players to kick a certain player by having a majority of votes, and a kick system made by jim7777 which allows players to kick an afk player. but all of a sudden when typing "-kickafk X" (by jim7777) the kick system made by hell gate shows up "specify player to kick....." i think its because of the event "...containing -kick as a substring" although i know what triggers the problem, i dont know how to fix it. any solution how?

(hell gate) http://www.hiveworkshop.com/forums/...?prev=search=Kick%20System%20v1.1&d=list&r=20

(jim7777) http://www.hiveworkshop.com/forums/spells-569/anti-afk-system-v1-6b-196389/
 
Put a check to make sure the string isn't -kickafk at the beginning of hell-gate's system:

  • Custom script: if SubString(GetEventPlayerChatString(), 0, 8) == "-kickafk" then
  • Custom script: return
  • Custom script: endif
This will just skip the rest of the trigger if the entered string starts with "-kickafk"
 
Status
Not open for further replies.
Top