Search found 148 matches

by 8guawong
Fri Nov 14, 2014 12:08 pm
Forum: Plugin Development Support
Topic: need help using delay
Replies: 6
Views: 4955

ic i'll do some more testing
is there anyway to stop all the running delays?
because when i unload the script the delay is still running ... XD
by 8guawong
Fri Nov 14, 2014 11:28 am
Forum: Plugin Development Support
Topic: need help using delay
Replies: 6
Views: 4955

need help using delay

from events import Event from filters.players import PlayerIter from listeners.tick import tick_delays stop_check = 0 my_delay = 0 @Event def round_end(game_event): global stop_check stop_check = 0 tick_delays.cancel_delay(my_delay) @Event def round_start(game_event): check_...
by 8guawong
Thu Nov 13, 2014 6:38 am
Forum: Plugin Development Support
Topic: access locked cvar with SP for csgo
Replies: 2
Views: 3080

from cvars import cvar sv_enablebunnyhopping = cvar.find_var('sv_enablebunnyhopping') print('Current value:', sv_enablebunnyhopping.get_int()) and how to set it?? from cvars import cvar sv_enablebunnyhopping = cvar.find_var('sv_enablebunnyhopping'...
by 8guawong
Wed Nov 12, 2014 11:34 am
Forum: News & Announcements
Topic: A menus package is now available!
Replies: 26
Views: 60389

Ayuto wrote:No, currently there isn't, but you can create your own timeout by delay-calling <your menu>.close() after sending it.


ic thanks!
by 8guawong
Wed Nov 12, 2014 9:26 am
Forum: Plugin Development Support
Topic: access locked cvar with SP for csgo
Replies: 2
Views: 3080

access locked cvar with SP for csgo

can we do it?? some cvar are locked by valve like sv_enablebunnyhopping
by 8guawong
Wed Nov 12, 2014 1:41 am
Forum: Plugin Development Support
Topic: scripts to produce player trails and icon above player's head
Replies: 4
Views: 4277

Yes, you would replace the model to change the trail. Also, since you are just passing the string when setting the spritename, you will need to precache when using a custom material: model.index trail.spritename = model We will work on a fix for this, possibly something like: trail.spritename = mod...
by 8guawong
Tue Nov 11, 2014 11:30 am
Forum: General Discussion
Topic: maxrounds overrrid
Replies: 11
Views: 8716

nullable wrote:
8guawong wrote:yes yes yes yes


How? Please example


in server console type in mp_maxrounds #
0 = no max rounds
by 8guawong
Tue Nov 11, 2014 6:37 am
Forum: Plugin Development Support
Topic: scripts to produce player trails and icon above player's head
Replies: 4
Views: 4277

Once the entities_changes branch is finished, the following should work for trails (actually tested with my local version and it does work): from colors import BLUE from colors import RED from engines.precache import Model from entities.entity import BaseEntity from entities.helpers import create_e...
by 8guawong
Tue Nov 11, 2014 6:16 am
Forum: General Discussion
Topic: maxrounds overrrid
Replies: 11
Views: 8716

yes yes yes yes
by 8guawong
Mon Nov 10, 2014 8:03 am
Forum: News & Announcements
Topic: A menus package is now available!
Replies: 26
Views: 60389

is there a timeout option for the current package??

like http://python.eventscripts.com/pages/Popuplib.Popup_base.timeout
by 8guawong
Fri Nov 07, 2014 3:46 am
Forum: Plugin Development Support
Topic: es.cexec available in SP??
Replies: 5
Views: 4729

I don't think we can force players to change client variables. I'm also not sure I would want to play on a server that decided it knew the settings I should use better than I do... For the question in the topic, yes, you can use engine_server.client_command to execute client commands. Although, I b...
by 8guawong
Fri Nov 07, 2014 2:32 am
Forum: Plugin Development Support
Topic: es.cexec available in SP??
Replies: 5
Views: 4729

es.cexec available in SP??

want to have the script to have client exec cl_use_opens_buy_menu "0" since CSGO have it so when you are in a buy zone if you press the use button the buy menu pops up :rolleyes: wonder if the following will work... from engines.server import engine_server engine_server.client_command(...
by 8guawong
Fri Oct 31, 2014 4:50 pm
Forum: Plugin Development Support
Topic: need working script that acutally switches player for csgo
Replies: 26
Views: 19013

Ayuto wrote:The spectator index is 1.


tried 1 already!
by 8guawong
Fri Oct 31, 2014 4:01 pm
Forum: Plugin Development Support
Topic: need working script that acutally switches player for csgo
Replies: 26
Views: 19013

hello its me again what number do I use to switch player to spectator?? i tried 0,1,4,5 already but doesn't work

Code: Select all

CCSPlayer::SwitchTeam( 4 ) - invalid team index.
by 8guawong
Fri Oct 31, 2014 2:58 am
Forum: Plugin Development Support
Topic: PlayerEntity.freeze issue
Replies: 10
Views: 7064

PlayerEntity.freeze issue

def setfreeze(index, value): PlayerEntity(index).freeze = value this does not work @Event def player_jump(game_event): index = index_from_userid(game_event.get_int('userid')) player = PlayerEntity(index) player.freeze = 1 File '../addons/source-python/plugins...
by 8guawong
Sun Oct 26, 2014 10:57 pm
Forum: Plugin Development Support
Topic: problem spawing smoke grenade and he grenade
Replies: 8
Views: 6645

Since you are not giving your complete code (like everytime you ask for help), I will assume it is complete and answer you that's normal if you are not getting them since those functions are never called. heres the full code from events import Event from players.entity import PlayerEntity from play...
by 8guawong
Sun Oct 26, 2014 6:32 am
Forum: Plugin Development Support
Topic: problem spawing smoke grenade and he grenade
Replies: 8
Views: 6645

Is "player" a PlayerEntity instance? If so, try the following: def give_sg(player): index = server_tools.create_entity('weapon_smokegrenade') edict_from_index(index).set_key_value_vector( 'origin', player.get_key_value_vector('origin'...
by 8guawong
Sun Oct 26, 2014 12:48 am
Forum: Plugin Development Support
Topic: problem spawing smoke grenade and he grenade
Replies: 8
Views: 6645

its not giving/spawing the items

this is for csgo
by 8guawong
Sun Oct 26, 2014 12:11 am
Forum: Plugin Development Support
Topic: problem spawing smoke grenade and he grenade
Replies: 8
Views: 6645

problem spawing smoke grenade and he grenade

def give_sg(player): index = server_tools.create_entity('weapon_smokegrenade') edict_from_index(index).set_key_value_vector('origin', player.m_vecOrigin) server_tools.spawn_entity(index) def give_he(player): index = server_tools.create...

Go to advanced search