Search found 416 matches

by decompile
Sat Dec 19, 2015 2:56 pm
Forum: Plugin Development Support
Topic: Langstrings Options
Replies: 4
Views: 3508

Langstrings Options

Hey, I found Langstrings today and must say its so easy to use but i have one question to it. strings.ini [EliminatedTarget] en = Eliminated $target with $weapon strings = LangStrings('strings') message = (strings["EliminatedTarget"][language] But how can i replace the ...
by decompile
Sat Dec 19, 2015 2:48 pm
Forum: Plugin Development Support
Topic: SQL anyone?
Replies: 11
Views: 8119

iPlayer wrote:Because if there's no native support for remote SQL DBs now, well, what will we end up with? Every single plugin comes packed with its own version of PyMySQL?


I would love having a native support for mysql dbs
by decompile
Sat Dec 19, 2015 12:01 pm
Forum: Code examples / Cookbook
Topic: Stripping weapons
Replies: 45
Views: 114439

Is there an easier way of stripping a player completly?
by decompile
Sat Dec 19, 2015 12:14 am
Forum: Plugin Development Support
Topic: More questions
Replies: 26
Views: 17999

Most stuff is already done and worked! Thanks especially with the list(). @SayFilter def say_filter(CCommand, index, teamonly): text = CCommand.get_arg_string() skips actually the first say argument like if i write "Hello im decompile" it prints only "im decompile"...
by decompile
Fri Dec 18, 2015 11:58 pm
Forum: Plugin Development Support
Topic: More questions
Replies: 26
Views: 17999

Hey, easy to use thanks!
by decompile
Fri Dec 18, 2015 12:36 pm
Forum: Plugin Development Support
Topic: More questions
Replies: 26
Views: 17999

Thank you guys! Amazing support on the forums.

Gonna do now for each questions a new thread except theyre related to each other.
by decompile
Thu Dec 17, 2015 11:12 pm
Forum: Plugin Development Support
Topic: More questions
Replies: 26
Views: 17999

More questions

Hello! Im working now for a few days with SP and im happy to work with, but I still have some questions which i couldnt figure out yet :( 1. How can i fire a event? es.event("initialize", "player_say") es.event("setint", "player_say", "userid&...
by decompile
Wed Dec 16, 2015 10:39 pm
Forum: Plugin Development Support
Topic: Port of IPToCountry and some questions to port from ES To SP
Replies: 25
Views: 16570

Short question towards IPToCountry SP port.. I have tried to port def _download_database(self, url): try: with closing(urllib.urlopen(url)) as u: return StringIO(u.read()) except IOError: self.__show_exception(sys.exc_info()) return None to def...
by decompile
Mon Dec 14, 2015 10:07 pm
Forum: Plugin Development Support
Topic: Port of IPToCountry and some questions to port from ES To SP
Replies: 25
Views: 16570

Thank you!
by decompile
Mon Dec 14, 2015 5:56 pm
Forum: Plugin Development Support
Topic: Port of IPToCountry and some questions to port from ES To SP
Replies: 25
Views: 16570

Port of IPToCountry and some questions to port from ES To SP

Hello again! I tried to port the ES IPToCountry to SP but it seems like it does not include StringIO, so could someone might port that for us to SP please? (Never used it so i have no clear about that) Questions: 1. Whats the function for sending a userid a message to CHAT with colors like \x07..? (...
by decompile
Mon Dec 14, 2015 12:06 am
Forum: Plugin Development Support
Topic: drawing box
Replies: 2
Views: 2846

drawing box

Hey how is it possible to draw a box with 2 coordinates?

ES way

Code: Select all

effectslib.drawBox(coord1, coord2, red=red, green=green, blue=blue, seconds=0.1, model=model, width=width, endwidth=endwidth)


Couldnt figure it out yet
by decompile
Sun Dec 13, 2015 11:21 am
Forum: Plugin Development Support
Topic: say hook and a 2 questions
Replies: 6
Views: 4617

I'm not using the ticklistener for the say hook. Im just checking the userid's next message with the userid from the dict.


Thank you
by decompile
Sun Dec 13, 2015 2:21 am
Forum: Plugin Development Support
Topic: say hook and a 2 questions
Replies: 6
Views: 4617

Thank you so far! I dont know if i should do for every few questions a new thread or just create a collection thread for all of my questions but anyway i just ask that fast here: from listeners import Tick # Usage # @Tick # def <function>(): @Tick def tick_listener(): pass Always when i try to use t...
by decompile
Sun Dec 13, 2015 1:57 am
Forum: Plugin Development Support
Topic: say hook and a 2 questions
Replies: 6
Views: 4617

say hook and a 2 questions

Hey, im kinda starting to port es to SP and having the first troubles. How could you create a sayhook with sp? _sayHooks = {} def addSayHook(userid, function): userid = int(userid) if not callable(function): es.dbmsg(0, "ERROR: Tried to add sayhook on userid '%s' but function is not callable" % user...
by decompile
Fri Oct 30, 2015 8:24 pm
Forum: Plugin Requests
Topic: Plugins converts from Eventscripts to Source Python
Replies: 35
Views: 26297

Hey, you already said you don't need iptocountry and esc, but I would actually like them ported to spe :p
by decompile
Sat Oct 10, 2015 10:39 am
Forum: General Discussion
Topic: Porting ES to SP
Replies: 1
Views: 2477

Porting ES to SP

Hey guys,

Im kinda new with source python and seeing it gives you more and updated content.

Are there any ressources where i can find whats the difference between these 2 and what i need to remember when porting From ES To SP?

And isnt Sourcepython Python 3+ now?

Thanks

Go to advanced search