Search found 148 matches

by 8guawong
Thu Nov 27, 2014 11:43 pm
Forum: Plugin Development Support
Topic: question about menu and repeat
Replies: 14
Views: 10036

thanks guys i went and updated my SP with the links from above

btw how do i just download the file from the links above?? instead of having to find the file and editing it by myself
can't find the download link to the specific file!!
by 8guawong
Thu Nov 27, 2014 10:21 am
Forum: Plugin Development Support
Topic: question about menu and repeat
Replies: 14
Views: 10036

is there something like gamethread.listDelayed() for repeat and tickdelay?? for some reason my repeats aren't getting stopped http://forums.sourcepython.com/showthread.php?699-A-simple-credit-plugin&p=3878#post3878 could it be this 11-27-2014 17:25:35 - sp - EXCEPTION [SP] Caught an Exception: T...
by 8guawong
Thu Nov 27, 2014 6:04 am
Forum: Code examples / Cookbook
Topic: A simple credit plugin
Replies: 4
Views: 20405

A simple credit plugin

import os.path import pickle from path import Path from players.entity import PlayerEntity from players.helpers import index_from_userid from events import Event from listeners.tick import TickRepeat players_credit = {} credit_repeat = {} def load(): global players_credit base_path = Path&#...
by 8guawong
Wed Nov 26, 2014 11:49 pm
Forum: Plugin Development Support
Topic: can't import cPickle
Replies: 1
Views: 2193

can't import cPickle

import cPickle [SP] Caught an Exception: Traceback (most recent call last): File '../addons/source-python/packages/source-python/plugins/manager.py', line 72, in __missing__ instance = self.instance(plugin_name, self.base_import) File '../addons/source-python/packages/source-python/plugins/instance...
by 8guawong
Wed Nov 26, 2014 11:14 pm
Forum: Whatever
Topic: Happy Thanksgiving all!
Replies: 1
Views: 4057

Happy Thanksgiving all!

:cool:
by 8guawong
Tue Nov 25, 2014 1:27 am
Forum: Plugin Development Support
Topic: PlayerEntity.freeze issue
Replies: 10
Views: 7059

ok thanks
by 8guawong
Mon Nov 24, 2014 2:47 pm
Forum: Plugin Development Support
Topic: PlayerEntity.freeze issue
Replies: 10
Views: 7059

but i have mp_freezetime set to 0
hmm so there is no way to freeze some1 when he/she spawns

cuz then if person joins late and spawns he won't get freezed

maybe do a round_start freeze

then leave player_spawn freeze code in as well hmmmm?

sorry for making this thread off topic :X
by 8guawong
Mon Nov 24, 2014 1:57 pm
Forum: Plugin Development Support
Topic: PlayerEntity.freeze issue
Replies: 10
Views: 7059

PlayerEntity.freeze issue

from players.helpers import index_from_userid from events import Event from players.entity import PlayerEntity @Event def player_spawn(game_event): userid = game_event.get_int('userid') index = index_from_userid(userid) player = PlayerEntity(index) player.fre...
by 8guawong
Sun Nov 23, 2014 11:24 pm
Forum: Plugin Development Support
Topic: how to show name of player that you are pointing to
Replies: 22
Views: 12705

how to show name of player that you are pointing to

not sure how to do this..

an example
by 8guawong
Sun Nov 23, 2014 11:23 pm
Forum: Plugin Development Support
Topic: question about menu and repeat
Replies: 14
Views: 10036

satoon101 wrote:create a dictionary to store TickRepeat instances for each userid.


isn't that what i'm doing?

Syntax: Select all

my_repeat[userid] = TickRepeat(welcome)
by 8guawong
Sun Nov 23, 2014 10:45 pm
Forum: Plugin Development Support
Topic: question about menu and repeat
Replies: 14
Views: 10036

question about menu and repeat

trying to port my quiz script from ES to SP but think i might end up with same problems as http://forums.eventscripts.com/viewtopic.php?f=90&t=47432&sid=3c686133d1369bc5147f13cbb1369e93 my ES quiz script def create_quiz_menu(userid): global solution, operator op1 = random.randint(...
by 8guawong
Thu Nov 20, 2014 6:57 am
Forum: Plugin Development Support
Topic: How to hook CGameClient::ProcessVoiceData?
Replies: 9
Views: 16686

is this to detect if some1 is using voice chat???????
by 8guawong
Thu Nov 20, 2014 12:03 am
Forum: Plugin Development Support
Topic: color in hudhint
Replies: 10
Views: 8082

test and tell us! :cool:
by 8guawong
Wed Nov 19, 2014 4:06 am
Forum: Plugin Development Support
Topic: color in hudhint
Replies: 10
Views: 8082

np
good job figuring it out :cool:
by 8guawong
Wed Nov 19, 2014 3:06 am
Forum: Plugin Development Support
Topic: color in hudhint
Replies: 10
Views: 8082

satoon101 wrote:No, it is not. Only SayText and SayText2 have that type of capabilities.


ok since i saw some server with colored hint text with SM so was wondering bout SP



whats the differecne between SayText and SayText2???
by 8guawong
Wed Nov 19, 2014 2:29 am
Forum: Plugin Development Support
Topic: color in hudhint
Replies: 10
Views: 8082

color in hudhint

is it possible to have colors in hudhint?? (csgo)

Syntax: Select all

HintText(message='\x04test').send()


don't work
by 8guawong
Tue Nov 18, 2014 2:01 pm
Forum: News & Announcements
Topic: A menus package is now available!
Replies: 26
Views: 60205

from players.helpers import index_from_userid from events import Event from menus import SimpleMenu from menus import Option from menus import Text from listeners.tick import tick_delays def test_select_callback(menu, ply_index, option): return test_menu = SimpleMenu() test_menu.app...
by 8guawong
Sat Nov 15, 2014 2:02 am
Forum: Plugin Development Support
Topic: need help using delay
Replies: 6
Views: 4955

As Ayuto mentioned, though, if you want a repeating delay, it would be better to use a TickRepeat. I will work on that Wiki page tonight, but I think examples exist on the forums, somewhere. yea i was searching for repeat but i couldn't find it :cool: but i DO remeber seeing the word repeat somewhe...
by 8guawong
Sat Nov 15, 2014 12:13 am
Forum: Plugin Development Support
Topic: need help using delay
Replies: 6
Views: 4955

You have to cancel your delay when you unload your addon. But you don't really need a delay here (or even better a repeat). You can just use this snippet to get notified instantly without a possible delay. from events import Event from filters.players import PlayerIter @Event def player_death(g...

Go to advanced search