Raised This Month: $420 Target: $400
 105% 

Showing results 1 to 25 of 500
Search took 0.12 seconds.
Search: Posts Made By: Bugsy
Forum: Code Snippets/Tutorials Yesterday, 14:06
Replies: 12
Views: 298
Posted By Bugsy
Re: (vault designed for beginners) nvp.inc

In my opinion, nVault is already relatively user-friendly. This include essentially just formats a user-specific key for different key values which is something that a beginner user should learn out...
Forum: Scripting Help 06-17-2017, 13:23
Replies: 2
Views: 79
Posted By Bugsy
Re: [ H3LP ] Use bpammo instead of clip?

I'm not sure it's possible to hide just the clip ammo. You could possibly make it display 0 or some constant value.

I was thinking HideWeapon message, but this hides other things in addition to...
Forum: Suggestions / Requests 06-16-2017, 21:19
Replies: 2
Views: 118
Posted By Bugsy
Re: Array Issue or Wrong Loop?

Show the definition of MAX_PLAYERS. And your loop should use get_players() instead of looping 1 to MAX_PLAYERS...if you do loop from 1 to MAX_PLAYERS, it should be id <= MAX_PLAYERS, not id <...
Forum: Code Snippets/Tutorials 06-06-2017, 09:52
Replies: 80
Views: 32,898
Posted By Bugsy
Re: [TUT] Bits, Bit-fields, and Bit-wise Operators

SetUserBool(%1,%2) ( %1 |= (1 << (%2 - 1)))

You used |= instead of left shift and you should shift 1, not %1, but yea that will work as long as only 1 to 32 are inputted. Same logic as using ( %2...
Forum: Approved Plugins 06-01-2017, 22:28
Replies: 82
Views: 33,086
Posted By Bugsy
Re: Disconnect Reason

Does it still work? I don't know, but I assume so.

This plugin only detects the disconnect type at a basic level--a kick is a kick, the fact that a kick occurred because of X reason does not...
Forum: Suggestions / Requests 05-13-2017, 13:42
Replies: 13
Views: 647
Posted By Bugsy
Re: Block "rtv" when admin online ?

You're probably missing a closing bracket or something. Investigate where you edited code.
Forum: Suggestions / Requests 05-13-2017, 11:53
Replies: 13
Views: 647
Posted By Bugsy
Re: Block "rtv" when admin online ?

I edited the above code.
Forum: Code Snippets/Tutorials 05-13-2017, 11:02
Replies: 33
Views: 3,751
Posted By Bugsy
Re: [STOCK] give_user_weapon

Valid point, but I still don't think it will work. I could be wrong, but I think this is only to validate that constants are set to valid values, not for checking dynamic parameter values passed into...
Forum: Code Snippets/Tutorials 05-13-2017, 09:53
Replies: 33
Views: 3,751
Posted By Bugsy
Re: [STOCK] give_user_weapon

I don't think it hurts anything leaving it there since it's inexpensive, but yes I agree with you.
Forum: Code Snippets/Tutorials 05-12-2017, 19:24
Replies: 33
Views: 3,751
Posted By Bugsy
Re: [STOCK] give_user_weapon

While I agree that give_item() is more proper and efficient for giving a knife, the function does handle knives so I don't think your big red blurb is appropriate. Also, it does cover the alive check...
Forum: Code Snippets/Tutorials 05-11-2017, 19:01
Replies: 33
Views: 3,751
Posted By Bugsy
Re: [STOCK] give_user_weapon

Just make it give knife... and no (https://forums.alliedmods.net/showthread.php?t=102933)

Edit: It works with knife, I just tested it with this: give_user_weapon( id , CSW_KNIFE );

However, you...
Forum: Code Snippets/Tutorials 05-06-2017, 10:59
Replies: 33
Views: 3,751
Posted By Bugsy
Re: [STOCK] give_user_weapon

I agree with them, Craxor. This way it covers everything. The end user may attempt to use it with knife not knowing it was not built to handle knives. The function name is not indicative of this.
Forum: Scripting Help 05-06-2017, 10:50
Replies: 4
Views: 85
Posted By Bugsy
Re: Unable to debug crash

post the plugin source so we can take a look
Forum: Scripting Help 05-06-2017, 10:41
Replies: 4
Views: 85
Posted By Bugsy
Re: Unable to debug crash

Disable plugins one at a time until the crashing stops.
Forum: Scripting Help 05-05-2017, 23:30
Replies: 9
Views: 216
Posted By Bugsy
Re: How do i get all map existing in the server?

The difference is when the condition is checked resulting in the code execution. This is not specific to Pawn, you can google this same logic for C.

Here's a result I found that explains it a bit:...
Forum: Scripting Help 05-05-2017, 21:35
Replies: 9
Views: 216
Posted By Bugsy
Re: How do i get all map existing in the server?

The code isn't meant to print in console, it does this just as a demonstration/example. It will not have an issue printing a large list, but nobody will be able to see it.
Forum: Scripting Help 05-05-2017, 20:48
Replies: 9
Views: 216
Posted By Bugsy
Re: How do i get all map existing in the server?

This code example prints them out in server console.
Forum: Scripting Help 05-05-2017, 19:35
Replies: 9
Views: 216
Posted By Bugsy
Re: How do i get all map existing in the server?

You can trim off the ".bsp" like this instead of calling a native.

//Check if file extension is '.bsp'.
if ( ( len > 4 ) && ( equali( fileName[ len - 4 ] , ".bsp" , 4 ) ) )
{
@@ fileName[ len -...
Forum: Scripting Help 05-04-2017, 23:43
Replies: 9
Views: 216
Posted By Bugsy
Re: How do i get all map existing in the server?

For the sake of time I found a function written by Arkshine (https://forums.alliedmods.net/showpost.php?p=1275707&postcount=2) that I edited to retrieve maps. This will only print them out, you will...
Forum: Code Snippets/Tutorials 04-30-2017, 20:46
Replies: 113
Views: 30,103
Posted By Bugsy
Re: Orpheu: How to make signatures (of bytes)

I created a tool in VB for creating signatures. All you would need to do is copy a block of text from IDA and paste it into the tool and it will generate the entire signature. Maybe I will wait until...
Forum: Suggestions / Requests 04-30-2017, 20:29
Replies: 12
Views: 263
Posted By Bugsy
Re: Assigning weapons skins by STEAM ID

RAW_192, please do not delete/edit your post(s) after they are solved. Other users can have the same question that you did and could get help from your solution.
Forum: Scripting Help 04-30-2017, 20:18
Replies: 10
Views: 342
Posted By Bugsy
Re: True or False

Nevermind, looking at the function I see why you explained it this way since its written as 'Post=0'. I was thinking along the lines of something like the below. I didn't look at the link prior to...
Forum: Scripting Help 04-30-2017, 19:39
Replies: 10
Views: 342
Posted By Bugsy
Re: True or False

Typo in your post (no pun intended), you should fix it so you do not confuse him (or anyone).
Forum: Scripting Help 04-25-2017, 18:10
Replies: 13
Views: 236
Posted By Bugsy
Re: Help

Why is a 'stock' the best way? Do you know what 'stock' means/does? I think you mean to say 'function'.

Natsheh is right, event driven is the way to go and is probably always most efficient. This...
Forum: Scripting Help 04-24-2017, 23:10
Replies: 13
Views: 236
Posted By Bugsy
Re: Help

new g_Admins;

public client_putinserver( id )
{
g_Admins |= ( is_user_admin( id ) << ( id & 31 ) );
}

public client_disconnect( id )
{
g_Admins &= ~( 1 << ( id & 31 ) );
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 08:03.


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