Hello cheaters, Well, I'm implementing my Capture the Flag (CTF) event, I want to put it on when a player picks up a flag and delivers the weapon he was equipped to return without needing to do it himself.
can you give me examples how can i do this? because I tried creating an array but it didn't work
if(_flags.keySet().contains(npc)){if(getState()!=EventState.RUNNING)returntrue;if(_flags.get(npc)== getTeam(player)&& _flagWielders.values().contains(player)){
player.destroyItemByItemId("Event flag.",6718,1, null,false);
player.broadcastUserInfo();
announce(player.getName()+" has scored for "+_flags.get(npc).getName()+"!",false);
increaseScore(player,1);for(Npc flag : _flagWielders.keySet()){if(_flagWielders.get(flag)== player){
_removeFlags = flag;break;}}
_flagWielders.remove(_removeFlags);returntrue;}if(_flags.get(npc)!= getTeam(player)&&!_flagWielders.keySet().contains(npc)){ItemInstance flag = player.addItem("Event flag.",6718,1, null,false);
player.useEquippableItem(flag,true);
player.broadcastUserInfo();
announce(player.getName()+" has got the "+_flags.get(npc).getName()+" flag!",false);
player.broadcastPacket(newSocialAction(player,16));
_flagWielders.put(npc, player);returntrue;}}
You can post now and register later.
If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.
DISCORD :
utchiha_market
telegram :
https://t.me/utchiha_market
SELLIX STORE :
https://utchihamkt.mysellix.io/
Join our server for more products :
https://discord.gg/hood-services
https://campsite.bio/utchihaamkt
Question
Williams
Hello cheaters, Well, I'm implementing my Capture the Flag (CTF) event, I want to put it on when a player picks up a flag and delivers the weapon he was equipped to return without needing to do it himself.
can you give me examples how can i do this? because I tried creating an array but it didn't work
0 answers to this question
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.