This site is a testing version, but all data is shared with the
live forum
.
Rules
FAQ
Members List
Search
Register
Login
Raised This Month: $
Target: $400
0%
Search Forums
Show Threads
Show Posts
Advanced Search
Go to Page...
Page 1 of 20
1
2
3
11
>
Last
»
Showing results 1 to 25 of 500
Search took
0.24
seconds.
Search:
Posts Made By:
Bugsy
Forum:
Scripting Help
Yesterday, 10:10
Replies:
6
Solved
Stale Variable problem
Views:
179
Posted By
Bugsy
Re: Stale Variable problem
Do a test output/log in various parts of your code to see where the issue is. There’s a possibility that verify_name() is not getting called at all, your copy() line is not getting reached, or the...
Forum:
Scripting Help
05-09-2024, 13:04
Replies:
6
Solved
Stale Variable problem
Views:
179
Posted By
Bugsy
Re: Stale Variable problem
Is the expectation that g_cName[] always has the users current name? If so, where are you setting the name to that array when the name gets changeed?
Forum:
Suggestions / Requests
05-04-2024, 11:18
Replies:
7
Skill points become negative
Views:
440
Posted By
Bugsy
Re: Skill points become negative
Chief, another option you have is using clamp()
val = clamp( the value , minimum , maximum )
val will always result in a value between min and max.
Forum:
Scripting Help
04-22-2024, 17:21
Replies:
12
Detect teammate
Views:
736
Posted By
Bugsy
Re: Detect teammate
Post the full plugin. We need to see how the attackers player ID can be derived. And please wrap your code with [ php] [/ php] tags
Forum:
Scripting Help
04-21-2024, 19:51
Replies:
9
Execute cfg via chat
Views:
830
Posted By
Bugsy
Re: Execute cfg via chat
Ah, my bad.
As fysiks said, you can do:
server_cmd( "exec %s.cfg" , szArg[ 1 ] );
or
server_cmd( "exec %s.cfg" , configs[ i ] );
both will do the exact same thing.
Forum:
Scripting Help
04-20-2024, 23:25
Replies:
9
Execute cfg via chat
Views:
830
Posted By
Bugsy
Re: Execute cfg via chat
Add your config files to the array, excluding the ".cfg" extension. Do you want to limit who can execute config files to admins only?
This will support saying /lo3 or .lo3
#include <amxmodx>
...
Forum:
Scripting Help
04-16-2024, 20:36
Replies:
20
Choosing a random player
Views:
1,408
Posted By
Bugsy
Re: Choosing a random player
No, random(7) = {0,1,2,3,4,5,6}
This is fine as you are not using the random number as the player index, you are using it as an index to the iPlayers array, which get_players() fills with all...
Forum:
Scripting Help
04-16-2024, 10:24
Replies:
20
Choosing a random player
Views:
1,408
Posted By
Bugsy
Re: Choosing a random player
new iPlayers[ 32 ] , iNum , iRandom;
get_players( iPlayers , iNum );
if ( iNum )
{
iRandom = iPlayers [ random( iNum ) ];
}
Forum:
Scripting Help
04-13-2024, 10:32
Replies:
9
Solved
Something about dynamic arrays
Views:
672
Posted By
Bugsy
Re: Something about dynamic arrays
Other people may be in the same boat as you, and find your post. Problem solved.
Forum:
Scripting Help
04-10-2024, 12:28
Replies:
12
CurWeapon Event
Views:
889
Posted By
Bugsy
Re: CurWeapon Event
Either one, but I hesitate to use _ex as some people are using ancient versions of AMX-X and I don’t feel like adding pre-processor directives to keep it compatible across all versions.
Forum:
Scripting Help
04-08-2024, 21:14
Replies:
12
CurWeapon Event
Views:
889
Posted By
Bugsy
Re: CurWeapon Event
Or just use register_event()…
Forum:
Scripting Help
04-08-2024, 08:41
Replies:
12
CurWeapon Event
Views:
889
Posted By
Bugsy
Re: CurWeapon Event
“and withdraw slowly”? What does that mean?
Forum:
Scripting Help
04-07-2024, 10:13
Replies:
12
CurWeapon Event
Views:
889
Posted By
Bugsy
Re: CurWeapon Event
These are what you have to work with from a conditions perspective in the CurWeapon event.
https://wiki.alliedmods.net/Half-life_1_game_events
Name: CurWeapon
byte IsActive
byte WeaponID...
Forum:
Scripting Help
04-06-2024, 00:34
Replies:
12
CurWeapon Event
Views:
889
Posted By
Bugsy
Re: CurWeapon Event
Try
register_event("CurWeapon" , "knifeBuff" , "be" , "1=1" );
Forum:
Scripting Help
04-04-2024, 11:57
Replies:
13
nVault save + load
Views:
1,135
Posted By
Bugsy
Re: nVault save + load
nVault is very simple, take a look at this (https://forums.alliedmods.net/showthread.php?t=91503). Ask if you have any questions.
Forum:
Scripting Help
03-31-2024, 20:15
Replies:
10
Setting access flags for all players
Views:
646
Posted By
Bugsy
Re: Setting access flags for all players
I still don't think you understand his ask.
"How can I make sure that all players have a different access flag when entering and not the standard one for ordinary players?"
To me this reads as...
Forum:
Scripting Help
03-30-2024, 19:47
Replies:
21
CurWeapon event will fire on Fire
Views:
1,797
Posted By
Bugsy
Re: CurWeapon event will fire on Fire
I tried getting the weapon entity index the simplest way using find_ent_by_owner(), but this was returning 0 because the owner of the weapon is not yet established when the WeapPickup event is...
Forum:
Scripting Help
03-30-2024, 15:51
Replies:
21
CurWeapon event will fire on Fire
Views:
1,797
Posted By
Bugsy
Re: CurWeapon event will fire on Fire
Change read_data( 2 ) to read_data( 1 ). What do you need the entity ID for?
Name: WeapPickup
Structure:
byte WeaponID
Forum:
Scripting Help
03-30-2024, 15:11
Replies:
21
CurWeapon event will fire on Fire
Views:
1,797
Posted By
Bugsy
Re: CurWeapon event will fire on Fire
What event is triggering weapon_pickup?
Why are you checking if the weapon entity (iEntity) is equal to admin? This may just be bad variable naming.
What does admin hold?
If you are using...
Forum:
Suggestions / Requests
03-30-2024, 13:08
Replies:
8
Cerere Alien vs Human mod
Views:
855
Posted By
Bugsy
Re: Cerere Alien vs Human mod
Stop bumping your threads
Forum:
Scripting Help
03-30-2024, 11:49
Replies:
10
Setting access flags for all players
Views:
646
Posted By
Bugsy
Re: Setting access flags for all players
You mean get_user_flags()?
Forum:
Scripting Help
03-29-2024, 20:34
Replies:
6
REQ - Script Help.
Views:
385
Posted By
Bugsy
Re: REQ - Script Help.
I need very specific criteria for how it should work... I cant read your mind and magically make it happen. Every aspect of a plugin has to be coded for what it will do.
Forum:
Scripting Help
03-29-2024, 19:48
Replies:
6
REQ - Script Help.
Views:
385
Posted By
Bugsy
Re: REQ - Script Help.
So you want a plugin that executes a console command every X random seconds?
Forum:
Scripting Help
03-29-2024, 18:55
Replies:
6
REQ - Script Help.
Views:
385
Posted By
Bugsy
Re: REQ - Script Help.
Explain what you want the outcome to be so nobody is making assumptions. Are you trying to make the bots look like real players, coming and going at random?
Forum:
Scripting Help
03-27-2024, 20:52
Replies:
3
Detecting player is standing.
Views:
388
Posted By
Bugsy
Re: Detecting player is standing.
This may help, depending on what your goal is. As you found, there is no IN_STAND, so you have only IN_DUCK to work with.
#include <amxmodx>
#include <fakemeta>
public plugin_init()
{...
Showing results 1 to 25 of 500
Page 1 of 20
1
2
3
11
>
Last
»
Forum Jump
User Control Panel
Private Messages
Subscriptions
Who's Online
Search Forums
Forums Home
Server Discussion
Source Servers (SRCDS)
HL1 Servers (HLDS)
AMX Mod X
News
Bug Reports
General
Off-Topic
Plugins
Suggestions / Requests
Approved Plugins
New Plugin Submissions
Unapproved/Old Plugins
Translation Request
High-Traffic Plugins
GunGame
UAIO (Ultimate All-In-One Plugin)
xREDIRECT
CSDM
AMX Super
RuneMod
Zombie Plague Mod
SuperHero Mod
News
Tech Support
Scripting Help
Off-Topic / General Chat
Heroes
Suggestions / Requests
Approved Heroes
New Submissions
Unapproved/Old Heroes
Module Heroes
SuperHero Mod Stats - By 123
(OLD) Bug Reports
Scripting
Scripting Help
Code Snippets/Tutorials
Module Coding
Donor Access
SourceMod
News
General
Plugins
Plugins
Unapproved Plugins
Plugin/Gameplay Ideas and Requests
High-Traffic Plugins
SourceMod Anti-Cheat
Zombie:Reloaded
SourceBans / SourceBans++
VSH / Freak Fortress
Store
SM_Hosties
HLstatsX:CE
Scripting
Extensions
Snippets and Tutorials
Donor Access
Metamod: Source
Metamod:Source Plugins
Metamod:Source Questions
Coding MM:S Plugins & SM Extensions
Hosted Stuff
Asherkin's Plugins
TFDodgeball
TF2Items
SteamTools
Bail's Plugins
CSDM
CS:S DM
Off-Topic & Trash
Off-Topic
Trash
All times are GMT -4. The time now is
11:51
.
DMCA
-
Archive
-
Top
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode