Donate to the B3 fund!

"even a small donation helps!"
Donate with PayPal!
Most of the plugins here are made by B3 users and the authors may not visit frequently. If you need support for plugins or if questions remain unanswered, you will have to contact the author directly. Read the full Support Disclaimer here

NOTE: Do not attach plugins to your forumtopics! Attachements are periodically removed by maintenance tasks. Upload your plugins to our Downloads section instead!

Author Topic: Custom Commands  (Read 10123 times)

Offline phyys1x

  • Full Member
  • ***
  • Posts: 93
  • Whatcha cudin
    • Clans website
Re: Custom Commands
« Reply #15 on: April 16, 2014, 03:14:30 PM »
this is how it looks ingame, https://www.mediafire.com/?99scsacu51c8xws

Offline Fenix

  • Dev. Team
  • Hero Member
  • *
  • Posts: 981
    • GitHub
Re: Custom Commands
« Reply #16 on: April 16, 2014, 03:16:41 PM »
Bigtext argument needs to be quoted otherwise the gamecode arg parse will consider only the first word. The Say command instead works differently (also without quotes it works fine). Don't ask me why, I was meant to change this but iForgot


Sent from my iPhone using Tapatalk

Offline phyys1x

  • Full Member
  • ***
  • Posts: 93
  • Whatcha cudin
    • Clans website
Re: Custom Commands
« Reply #17 on: April 16, 2014, 03:21:15 PM »
and if you run the command
Code: [Select]
bigtext ^7Hey! ^2^7MsT^3*^5|^2eX^6m!Q^7 ^7, How are you? :)
in your gameserver console, does it work as expected ?

Maybe you need double quotes around the message:
Code: [Select]
bigtext "^7Hey! ^2^7MsT^3*^5|^2eX^6m!Q^7 ^7, How are you? :)"
Thanks mate the " " double quotes worked ! :)  A picture to show it :) http://www.mediafire.com/view/snjqkc67m2a6ba5/shot0035.jpg
Great discovery and thanks a lot for helping me, this will help me in the future I bet :)

Offline phyys1x

  • Full Member
  • ***
  • Posts: 93
  • Whatcha cudin
    • Clans website
Re: Custom Commands
« Reply #18 on: April 16, 2014, 03:51:33 PM »
Hey ehm theres a problem.. look, how to fix it? http://www.mediafire.com/view/231cz3ztl8pgg9q/shot0036.jpg

Offline phyys1x

  • Full Member
  • ***
  • Posts: 93
  • Whatcha cudin
    • Clans website
Re: Custom Commands
« Reply #19 on: April 16, 2014, 10:02:16 PM »
I fixed the last problem, but how can I fix this http://www.mediafire.com/view/9pfeqt1d87da3qc/shot0040.jpg I don't want the message to come up at all if there's 2 played with that same in their name

Offline phyys1x

  • Full Member
  • ***
  • Posts: 93
  • Whatcha cudin
    • Clans website
Re: Custom Commands
« Reply #20 on: April 17, 2014, 02:19:33 AM »
Im pretty sure its in the .py file, but I cant find where to change to liek if theres 2 with name ex ( example ) exmiq , exlappens. I dont want msg to show up on !hey just say theres 2 players with name ex, and shows their name and server client number.

Offline phyys1x

  • Full Member
  • ***
  • Posts: 93
  • Whatcha cudin
    • Clans website
Re: Custom Commands
« Reply #21 on: April 17, 2014, 02:42:53 AM »
b3.log file here running cmds to show how i mean :) http://pastebin.com/Rr3WESFm

Offline persia88

  • Newbie
  • *
  • Posts: 7
Re: Custom Commands
« Reply #22 on: April 23, 2014, 08:48:36 AM »
mine is works thanx for plugin  ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D ;D

Offline phyys1x

  • Full Member
  • ***
  • Posts: 93
  • Whatcha cudin
    • Clans website
Re: Custom Commands
« Reply #23 on: May 04, 2014, 04:29:22 AM »
Hi, courgette Do you think it would be possible for you to do like this, look i'll show u.

hai = bigtext " ^3Hello <ARG:^2Everyone:FIND_PLAYER:EXACTNAME>^8!"

So you can do like Choose of doing like !hai And it will Say { Hello Everyone! } or.  u do like !hai phyy and it will say Hello Phyys1x!, So it gets the player full name. What you think?, Can you update and add it or will it be to hard or not work? :)
also, if someone has a colored name, well u  can see i put ^2 before everyone so everyone is in green, but if somene has a colored name when i do !hi {name} could it get the colors of the name the player is using also?

Offline Courgette

  • Senior Dev.
  • Hero Member
  • *
  • Posts: 4882
    • Github repository
Re: Custom Commands
« Reply #24 on: May 04, 2014, 05:52:30 AM »
This plugin is for simple and straight forward commands.
More complicated scenarios are to be implemented in their own plugin

Offline phyys1x

  • Full Member
  • ***
  • Posts: 93
  • Whatcha cudin
    • Clans website
Re: Custom Commands
« Reply #25 on: May 05, 2014, 02:06:47 AM »
This plugin is for simple and straight forward commands.
More complicated scenarios are to be implemented in their own plugin
Ok, since I dont know anything about making own b3 plugins ( python ) I wont touch anything :d ill just crash the whole internet for everyone in the world

Offline DaRkSouLS

  • Jr. Member
  • **
  • Posts: 24
Re: Custom Commands
« Reply #26 on: January 24, 2015, 09:50:15 AM »
can this plugin be made for cod4?

Offline Fenix

  • Dev. Team
  • Hero Member
  • *
  • Posts: 981
    • GitHub
Re: Custom Commands
« Reply #27 on: January 24, 2015, 12:07:22 PM »
can this plugin be made for cod4?
This plugin is not game specific: works with all the parsers so also with cod4

 


Rate this page +1 at Google Search