Rules
FAQ
Members List
Search
Register
Login
Raised This Month: $
Target: $400
0%
Page 1 of 20
1
2
3
11
>
Last
»
Showing results 1 to 25 of 500
Search took
0.41
seconds.
Search:
Posts Made By:
Bugsy
Forum:
Scripting Help
06-27-2022, 16:33
Replies:
15
Need help with nvault array
Views:
319
Posted By
Bugsy
Re: Need help with nvault array
Right, you could consolidate all player data items to a single nvault array record for each player, instead of having multiple nvault records for each data item, for each player.
So with nvault...
Forum:
Suggestions / Requests
06-26-2022, 23:04
Replies:
14
Double Knife Frag [SEARCH]
Views:
1,285
Posted By
Bugsy
Re: Double Knife Frag [SEARCH]
#include <amxmodx>
#include <hamsandwich>
#include <zombieplague>
public plugin_init()
{
register_event( "DeathMsg" , "Kill" , "a" , "1>0" );
}
public Kill()
Forum:
Suggestions / Requests
06-26-2022, 12:30
Replies:
14
Double Knife Frag [SEARCH]
Views:
1,285
Posted By
Bugsy
Re: Double Knife Frag [SEARCH]
Might want to add a "1>0" condition and maybe a read_data(1) != read_data(2) check.
Forum:
Scripting Help
06-25-2022, 23:26
Replies:
15
Need help with nvault array
Views:
319
Posted By
Bugsy
Re: Need help with nvault array
If you have 1 or 50 plugins it doesn't matter to the rule, from an individual data record perspective, nvault_get can only be used with nvault_set, and nvault_get_array can only be used with...
Forum:
Scripting Help
06-25-2022, 11:14
Replies:
15
Need help with nvault array
Views:
319
Posted By
Bugsy
Re: Need help with nvault array
Why use 2 separate vaults?
Forum:
Scripting Help
06-25-2022, 11:02
Replies:
15
Need help with nvault array
Views:
319
Posted By
Bugsy
Re: Need help with nvault array
A vault can have a combination of array and non-array data. You just cant do
nvault_set( vault , "bugsy" , "abc" )
nvault_get_array( vault , "bugsy" , arr , size );
Forum:
Scripting Help
06-25-2022, 10:37
Replies:
15
Need help with nvault array
Views:
319
Posted By
Bugsy
Re: Need help with nvault array
Using the below as an example, you are passing what appears to be a single integer (g_level[]) with a size of the entire array (33?) for all players which doesn't make any sense.
formatex(szKey,...
Forum:
Off-Topic
06-25-2022, 00:37
Replies:
1
Where to start?
Views:
172
Posted By
Bugsy
Re: Where to start?
For plugin mods, look at existing mods that are similar to what you want to create then experiment/learn/ask questions. Look around in the SourceMod section.
Forum:
Scripting Help
06-24-2022, 23:23
Replies:
15
Need help with nvault array
Views:
319
Posted By
Bugsy
Re: Need help with nvault array
This means you tried to use nvault_get_array() on data saved using nvault_set(). If this is not the case, it may be a bug but I'll need more info to look into fixing it.
Forum:
Code Snippets/Tutorials
06-17-2022, 11:07
Replies:
118
[Tut] MySql - Save/Load/Usefull Things (Xp Mod)
Views:
68,615
Posted By
Bugsy
Re: [Tut] MySql - Save/Load/Usefull Things (Xp Mod)
Do you just need the SQL or are you asking for code? For something simple like this, you could always use nVault, which includes the prune function to delete stuff after X time.
Forum:
Scripting Help
06-11-2022, 22:06
Replies:
13
save data
Views:
312
Posted By
Bugsy
Re: save data
Because you're using the enum to size a 2-dimension array of strings. What you did would allow this format only
{ 1 , 2 },
{ 3 , 4 }
etc
Forum:
Scripting Help
06-11-2022, 21:44
Replies:
13
save data
Views:
312
Posted By
Bugsy
Re: save data
Supremache, you need to make Goku and Freezer arrays
Forum:
Suggestions / Requests
06-11-2022, 19:36
Replies:
38
(Request) Is still impossible to pick up more than 1 weapon?
Views:
1,450
Posted By
Bugsy
Re: (Request) Is still impossible to pick up more than 1 weapon?
Remove all other 3rd party plugins from plugins.ini and see if it still happens
I also made a slight tweak to the above code, give it a try
Forum:
Suggestions / Requests
06-11-2022, 11:52
Replies:
38
(Request) Is still impossible to pick up more than 1 weapon?
Views:
1,450
Posted By
Bugsy
Re: (Request) Is still impossible to pick up more than 1 weapon?
Hardly tested
#include <amxmodx>
#include <fakemeta>
#include <cstrike>
#include <engine>
#include <hamsandwich>
new const Version[] = "0.1";
Forum:
Suggestions / Requests
06-05-2022, 22:46
Replies:
38
(Request) Is still impossible to pick up more than 1 weapon?
Views:
1,450
Posted By
Bugsy
Re: (Request) Is still impossible to pick up more than 1 weapon?
Of course..
Forum:
Scripting Help
06-01-2022, 20:45
Replies:
2
What is the difference between those two functions?
Views:
193
Posted By
Bugsy
Re: What is the difference between those two functions?
They are not functions, they are variables/arrays. You are correct in that they store information.
A Float holds a floating point decimal: 3.146534
A bool holds true or false
It depends on...
Forum:
Scripting Help
05-30-2022, 09:43
Replies:
24
Improving and optimizing this thing
Views:
518
Posted By
Bugsy
Re: Improving and optimizing this thing
Technically, no, because in both cases it's the same value: DefaultKnive is equal to 0. This is strictly a tag mismatch warning and the code will still run. As HamletEagle mentioned, you can suppress...
Forum:
Scripting Help
05-29-2022, 22:50
Replies:
24
Improving and optimizing this thing
Views:
518
Posted By
Bugsy
Re: Improving and optimizing this thing
Looks ok at first glance, test it
To fix those tag mismatches:
for(new Knives:i = DefaultKnife; i < Knives; i++) {
for(new P90s:i = DefaultP90; i < P90s; i++) {
Forum:
Scripting Help
05-29-2022, 22:26
Replies:
24
Improving and optimizing this thing
Views:
518
Posted By
Bugsy
Re: Improving and optimizing this thing
Because the array is sized using an enumerator (enum), which then requires that any time you index the array, it expects a variable that is tagged with the enum.
So you can either do:
new...
Forum:
Scripting Help
05-29-2022, 22:12
Replies:
24
Improving and optimizing this thing
Views:
518
Posted By
Bugsy
Re: Improving and optimizing this thing
To fix the tag mismatch in this function, anytime you use item, tag it with Knives:
KnivesItems[ Knives:item ][ ItemFlags ]
Forum:
Scripting Help
05-29-2022, 22:10
Replies:
24
Improving and optimizing this thing
Views:
518
Posted By
Bugsy
Re: Improving and optimizing this thing
If player_item[] holds the players knive index/type, I'd define it as:
new player_item[MAX_PLAYERS + 1]
//instead of
new player_item[ 7 ][MAX_PLAYERS + 1]
//if it needs to hold both knife type...
Forum:
Scripting Help
05-29-2022, 21:33
Replies:
24
Improving and optimizing this thing
Views:
518
Posted By
Bugsy
Re: Improving and optimizing this thing
It's pretty simple, and better, once you learn how to this type of organization.
KnivesItems[ Which knife type/index ][ The data you want for the knife ]
These are your knife types, you can...
Forum:
Scripting Help
05-29-2022, 19:34
Replies:
24
Improving and optimizing this thing
Views:
518
Posted By
Bugsy
Re: Improving and optimizing this thing
I didnt realize you also had separate flags for each, I added that to the above code. If you have any questions on using this, let me know.
Forum:
Scripting Help
05-29-2022, 11:31
Replies:
24
Improving and optimizing this thing
Views:
518
Posted By
Bugsy
Re: Improving and optimizing this thing
CurWeapon
switch ( get_user_weapon(id) )
{
case CSW_KNIFE , CSW_P90:
{
Set_Model(id)
}
}
Set_Model
Forum:
Scripting Help
05-29-2022, 11:22
Replies:
24
Improving and optimizing this thing
Views:
518
Posted By
Bugsy
Re: Improving and optimizing this thing
I'd consolidate item data into an enum sized array:
Edit: Added flags
enum Knives
{
DefaultKnife,
SomeKnife1,
SomeKnife2
}
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
04:21
.
DMCA
-
Archive
-
Top
Powered by vBulletin®
Copyright ©2000 - 2022, vBulletin Solutions, Inc.
Theme made by Freecode