Monthly Target: $400 Donations: $140
 35% 

Showing results 1 to 25 of 500
Search took 0.15 seconds.
Search: Posts Made By: Bugsy
Forum: Approved Plugins 02-19-2017, 23:27
Replies: 71
Views: 30,928
Posted By Bugsy
Re: Disconnect Reason

Lol, really? Its proper English, chief. Google "I can't imagine" if you don't believe me. It's basically saying "I cannot think of a reason why."

Back on topic.
Forum: Scripting Help 02-19-2017, 11:56
Replies: 6
Views: 73
Posted By Bugsy
Re: Parsing array

You can use nvault array
Forum: Approved Plugins 02-19-2017, 11:56
Replies: 71
Views: 30,928
Posted By Bugsy
Re: Disconnect Reason

He's disconnected, why would you want to do this?
Forum: Scripting Help 02-19-2017, 11:26
Replies: 6
Views: 73
Posted By Bugsy
Re: Parsing array

Is the data always all numbers? Why not use a single-dimension array of numbers? I'm guessing because you are storing this data in a file somewhere?

data[] = { 1 , 2 , 5 }
Forum: Approved Plugins 02-19-2017, 11:06
Replies: 71
Views: 30,928
Posted By Bugsy
Re: Disconnect Reason

lol. English is my native language dude, 'imagine' is valid.
Forum: Approved Plugins 02-19-2017, 10:25
Replies: 71
Views: 30,928
Posted By Bugsy
Re: Disconnect Reason

What do you want to do to a disconnecting/disconected player? I can't imagine anything except maybe retrieving info from him (name, steamid, etc). Try it and see.
Forum: Scripting Help 02-16-2017, 18:46
Replies: 17
Views: 269
Posted By Bugsy
Re: nvault_util doesn't work :/

It should work as is.. Did you do any debugging?
Forum: Scripting Help 02-15-2017, 19:47
Replies: 17
Views: 269
Posted By Bugsy
Re: nvault_util doesn't work :/

Your help was good, it's the OP that my post was directed towards.
Forum: Scripting Help 02-15-2017, 19:17
Replies: 17
Views: 269
Posted By Bugsy
Re: nvault_util doesn't work :/

This has nothing to do with nVault Utility either. This is nVault module stuff.
Forum: Suggestions / Requests 02-09-2017, 22:35
Replies: 8
Views: 168
Posted By Bugsy
Re: Best kİller

I smell index out of bounds errors when a player is on slot 32.
Forum: Scripting Help 02-09-2017, 17:39
Replies: 11
Views: 183
Posted By Bugsy
Re: get_user_flags

The result of the & operation contains flags only if they exist on both sides of the '&'.

get_user_flags() has FLAG1 and FLAG2 (assuming the player has these 2 flags)
( FLAG1 | FLAG2 | FLAG3 )...
Forum: Scripting Help 02-09-2017, 14:06
Replies: 11
Views: 183
Posted By Bugsy
Re: get_user_flags

Yes, it does the same thing..exactly what you asked for in your first post.

To check if has all, just add FLAG3 to the == value.

if ( ( get_user_flags( id ) & ( FLAG1 | FLAG2 | FLAG3 ) ) == (...
Forum: Scripting Help 02-09-2017, 13:49
Replies: 11
Views: 183
Posted By Bugsy
Re: get_user_flags

Why are you questioning this? My method is efficient.
Forum: Scripting Help 02-09-2017, 12:32
Replies: 11
Views: 183
Posted By Bugsy
Re: get_user_flags

That will return true if the player has FLAG1 and/or FLAG2, but doesn't guarantee they have both. I also do not think your ~ condition would work as you expect.

Try this:
if ( ( get_user_flags(...
Forum: Scripting Help 02-09-2017, 10:36
Replies: 5
Views: 122
Posted By Bugsy
Re: How to save easier in nvault?

Assign values for each player like this:

g_pdData[ id ][ Crimson ] = 343;
g_pdData[ id ][ Burner ] = 123;



#include <amxmodx>
#include <nvault_array>
Forum: Scripting Help 02-06-2017, 11:13
Replies: 3
Views: 88
Posted By Bugsy
Re: [CS] Preventing money earning

Of course, have you searched for this yet? I imagine it already exists. If not, you should post in the suggestions/requests section.
Forum: Scripting Help 02-04-2017, 10:23
Replies: 37
Views: 456
Posted By Bugsy
Re: Grenade Name return

Think about it. This means that toucher is the grenade entity index and touched is the player index. You need this:

gLastTouched[ touched ] = toucher
Forum: Scripting Help 02-04-2017, 00:27
Replies: 37
Views: 456
Posted By Bugsy
Re: Grenade Name return

id is the person who owns and threw the grenade. You want this variable to apply to the player being touched by the grenade.
Forum: Scripting Help 02-04-2017, 00:19
Replies: 37
Views: 456
Posted By Bugsy
Re: Grenade Name return

Just noticed you need to do this: gLastTouched[ toucher ] = touched

You currently have: gLastTouched[id] = touched

Which is saying: gLastTouched[ thrower of grenade ] = grenade index

should...
Forum: Scripting Help 02-04-2017, 00:06
Replies: 37
Views: 456
Posted By Bugsy
Re: Grenade Name return

No, because when the plugin is not enabled, you are doing all of this work (native calls) for nothing. You want to minimize code execution when disabled. Why do you care about grenade type when the...
Forum: Scripting Help 02-03-2017, 23:59
Replies: 37
Views: 456
Posted By Bugsy
Re: Grenade Name return

No, look at my edited post.

Edit: Nevermind, either way a native is being called. May as well just check the cvar instead of pev_owner. So yes, your code is fine, just move gLastTouched[id] =...
Forum: Scripting Help 02-03-2017, 23:51
Replies: 37
Views: 456
Posted By Bugsy
Re: Grenade Name return

fwd_touch() will get executed, there's no way around that without pausing/stopping the entire plugin.

The goal is to prevent as much code, especially natives, from getting called when the plugin...
Forum: Scripting Help 02-03-2017, 23:36
Replies: 37
Views: 456
Posted By Bugsy
Re: Grenade Name return

No, precache is called before init so your cvar pointer will be 0. You are better off letting precache get called..this way if the plugin is enabled during a game, it will begin working.

I see no...
Forum: Scripting Help 02-03-2017, 23:30
Replies: 37
Views: 456
Posted By Bugsy
Re: Grenade Name return

https://forums.alliedmods.net/showpost.php?p=1525755&postcount=175

114 is related to grenades events and a generic name would be : m_usEvent


0 : Flashbang : Since there is no event for that,...
Forum: Scripting Help 02-03-2017, 23:20
Replies: 37
Views: 456
Posted By Bugsy
Re: Grenade Name return

Yes, now the grenade is passed to the take health and killed by functions so you can react directly instead of assigning the grenade type to a global variable and reacting to it in each function....
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 16:04.


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