Raised This Month: $66 Target: $400
 16% 

Showing results 1 to 25 of 456
Search took 0.04 seconds.
Search: Posts Made By: pizzahut
Forum: HLstatsX:CE 04-21-2018, 15:28
Replies: 3
Views: 752
Posted By pizzahut
Re: is hlstatsX down?

Probably stating the obvious, but maybe it helps someone getting rid of this error.

You need to edit the file "updatecheck_helper.php" and replace the URL with a fixed string, e.g. "unknown" (so...
Forum: HLstatsX:CE 04-21-2018, 15:22
Replies: 9
Views: 1,018
Posted By pizzahut
Re: Player avatars broken again?

This quick fix by Master works, though I later found out that https is possible using fsockopen as well. Also, there is no error checking done in the quick fix.

So you can use this, but it's...
Forum: HLstatsX:CE 04-09-2018, 22:00
Replies: 9
Views: 1,018
Posted By pizzahut
Player avatars broken again?

Not running hlstatsx myself, but from what I've seen, Steam is now using https for the xml profile data. The function "fetchpage" in file "playerinfo_general.php" needs to be changed accordingly to...
Forum: Scripting Help 06-04-2017, 18:07
Replies: 13
Views: 613
Posted By pizzahut
Re: Prevent bots from changing team or spectating? (FoxBot for TFC)

In the thread title it says "FoxBot for TFC". Doesn't look like PodBot supports TFC.

http://podbotmm.bots-united.com/doc_v3/index.html

There are some other bots which do, but it's up to Unzy...
Forum: Scripting Help 06-04-2017, 17:44
Replies: 13
Views: 613
Posted By pizzahut
Re: Prevent bots from changing team or spectating? (FoxBot for TFC)

Maybe PodBot works differently. I did this and it only ever said once that a human joins (which was me), no mention of a bot using any of these commands:


#include <amxmodx>
#include <engine>
...
Forum: Scripting Help 06-04-2017, 17:00
Replies: 13
Views: 613
Posted By pizzahut
Re: Prevent bots from changing team or spectating? (FoxBot for TFC)

Added this now, needs testing though.


new team_name[32] // new variable

...

// old code
get_pcvar_string(g_bvh_bot_team, bot_team, charsmax(bot_team))
engclient_cmd(id, "jointeam",...
Forum: Scripting Help 06-04-2017, 16:01
Replies: 13
Views: 613
Posted By pizzahut
Re: Prevent bots from changing team or spectating? (FoxBot for TFC)

I have an idea, maybe in addition to the jointeam command (via engclient_cmd) I should create a TeamInfo event, this might update the scoreboard?

Plugin source:...
Forum: Scripting Help 06-04-2017, 13:41
Replies: 13
Views: 613
Posted By pizzahut
Re: Prevent bots from changing team or spectating? (FoxBot for TFC)

Thanks for the help Craxor. However as I mentioned, blocking client commands only works for human players.

Unzy if it only happens on map change, maybe try adding a delay. In the "foxbot.cfg",...
Forum: Scripting Help 06-04-2017, 08:34
Replies: 13
Views: 613
Posted By pizzahut
Prevent bots from changing team or spectating? (FoxBot for TFC)

The problem with FoxBots is that they occasionally change team and do other weird things like they might be stuck in spectator mode or they sometimes don't select a class. I've written a plugin which...
Forum: Scripting Help 02-27-2017, 15:18
Replies: 12
Views: 898
Posted By pizzahut
Re: MapVote Ini

Semi-related to this topic, I think it's better if you use your own voting map once your map voting plugin is finished. So not a 1:1 copy of the one FM uses. As I understand it, some maps they made...
Forum: Scripting Help 02-27-2017, 14:22
Replies: 12
Views: 898
Posted By pizzahut
Re: MapVote Ini

It was not asked here, what?
Forum: Scripting Help 02-26-2017, 14:12
Replies: 12
Views: 898
Posted By pizzahut
Re: MapVote Ini

Known bug: May find several panels for a player.

public display_map_name(task_id)
{
new ent
new entcount, entlist[32]
new panel
while ((ent = find_ent_by_tname(ent, "target_map")))
{...
Forum: Scripting Help 02-25-2017, 16:29
Replies: 12
Views: 898
Posted By pizzahut
Re: MapVote Ini

I forgot about pre-caching, plus this probably won't even work (not tested).


#include <amxmodx>
#include <amxmisc>
#include <engine>

#define MAXNAMES 500
#define PANELCOUNT 40
Forum: Scripting Help 02-25-2017, 13:14
Replies: 12
Views: 672
Posted By pizzahut
Re: Light Problem

There seems to be a limit of 32 dynamic lights. If there are more, some will turn off shortly after activation.

This variant creates dynamic lights with a 0.1s pause before creating the next one....
Forum: Scripting Help 02-25-2017, 13:07
Replies: 12
Views: 898
Posted By pizzahut
Re: MapVote Ini

Part of your request, that is reading an ini file and selecting random maps from it, without duplicates.

#include <amxmodx>
#include <amxmisc>

#define MAXNAMES 500
#define PANELCOUNT 40
...
Forum: Suggestions / Requests 02-23-2017, 16:52
Replies: 7
Views: 360
Posted By pizzahut
Re: Request] Plugin Jump + Speed + go forward

Here's the plugin I made for DarthMan:


#include <amxmodx>
#include <engine>

#define MAX_PLAYERS 32

public plugin_init()
{
Forum: Scripting Help 11-22-2016, 22:11
Replies: 6
Views: 475
Posted By pizzahut
Re: [WORKED AROUND] TFC - Forcing a flag drop on dustbowl style maps

Thanks SpannerSpammer and NiHiLaNTh, that was very helpful. Blocking flag touch is what the Twisted dustbowl server does AFAIK. I've been in contact with one of their admins but stopped bugging them...
Forum: Scripting Help 11-21-2016, 18:44
Replies: 8
Views: 569
Posted By pizzahut
Forum: Scripting Help 11-21-2016, 09:34
Replies: 8
Views: 569
Posted By pizzahut
Re: Damage can't increase damage

/**
* Ham return types.
*
* @note Return these from hooks to disable calling the target function.
* Numbers match up with fakemeta's FMRES_* for clarity. They are
* ...
Forum: Scripting Help 11-21-2016, 06:54
Replies: 6
Views: 383
Posted By pizzahut
Re: For or while

What are you trying to do, find out if a user has a grenade?

And for which game / mod is this, CS?

Maybe (didn't test):
if (user_has_weapon(id, CSI_HEGRENADE) || user_has_weapon(id,...
Forum: Scripting Help 11-21-2016, 06:27
Replies: 8
Views: 569
Posted By pizzahut
Re: Damage can't increase damage

It should be HANDLED after changing damage, and IGNORED otherwise. So like this:


SetHamParamFloat(4, damage)
return HAM_HANDLED
}

return HAM_IGNORED
}
Forum: Scripting Help 11-20-2016, 20:56
Replies: 8
Views: 569
Posted By pizzahut
Re: Damage can't increase damage

Does this forward work without using RegisterHam? Should be something like

RegisterHam(Ham_TakeDamage, "player", "fw_TakeDamage")
Forum: Scripting Help 11-20-2016, 15:51
Replies: 6
Views: 475
Posted By pizzahut
[SOLVED] TFC - Forcing a flag drop on dustbowl style maps

In general I'd like bots to either not carry a goal item like flag, key or football at all, or have them drop it. Maybe best would be to have them drop it when a human is near.

I know how to make...
Forum: Approved Plugins 09-17-2016, 09:46
Replies: 61
Views: 21,339
Posted By pizzahut
Re: Timeleft as Game Description

You need to load the dictionary "nextmap.txt" for this. Otherwise this happens:

http://oi64.tinypic.com/2drgps9.jpg (Thanks Harley for the screenshot and notifying me.)
Forum: Approved Plugins 06-04-2016, 15:42
Replies: 18
Views: 10,442
Posted By pizzahut
Re: Simple Team Balancer for TFC

Added team scrambling (shuffle_teams.sma) - still needs some work though.

Hint: It may be better to use TFC's built-in damage balancing (tfc_balance_scores, tfc_balance_teams) instead of using a...
Showing results 1 to 25 of 456

 
Forum Jump

All times are GMT -4. The time now is 22:54.


Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Theme made by Freecode