Raised This Month: $299 Target: $400
 74% 

Showing results 1 to 25 of 500
Search took 0.05 seconds.
Search: Posts Made By: Bugsy
Forum: Suggestions / Requests Yesterday, 09:19
Replies: 8
Views: 144
Posted By Bugsy
Re: Become VIP Plus after 15 days vip flag remove

That will delete everything in the vault that is over 15 days old.
Forum: Code Snippets/Tutorials 05-20-2022, 22:32
Replies: 132
Sticky: nVault Tutorial
Views: 122,854
Posted By Bugsy
Re: nVault Tutorial

This thread is not really for help with fixing plugins. Please post your question in Scripting Help or Suggestions/Requests if you want someone to do it for you.

If you have a question specific to...
Forum: Scripting Help 05-15-2022, 23:29
Replies: 1
Views: 129
Posted By Bugsy
Re: Random Enum

You need to tag the enumerator in the function. Will need to see addArrows() to fix warnings you'll likely get.

public ON( Client )
{
new ADV_MELEE_DIRECTION:amdRandom =...
Forum: Scripting Help 05-04-2022, 14:09
Replies: 11
Views: 428
Posted By Bugsy
Re: Help with top15 MOTD

I'd adjust the rank column width, and maybe center points, kills, deaths
Forum: Suggestions / Requests 05-04-2022, 09:12
Replies: 10
Views: 378
Posted By Bugsy
Re: Need to create dead bot

Just slay it and don't show a deathmsg. What's the goal with having a dead bot created?
Forum: Suggestions / Requests 05-03-2022, 22:27
Replies: 10
Views: 378
Posted By Bugsy
Re: Need to create dead bot

Look at my aimbot detection plugin. Just spawn then kill
Forum: Scripting Help 05-02-2022, 13:02
Replies: 11
Views: 428
Posted By Bugsy
Re: Help with top15 MOTD

I already accounted for the http part in the formatex, the array should have only the image name, as I showed you in the code: dhhwhsh.png

With what you did, the image is getting formated as:
...
Forum: Scripting Help 05-02-2022, 08:19
Replies: 11
Views: 428
Posted By Bugsy
Re: Help with top15 MOTD

Replace each image name in the array with what it is named on the imgur site. When the code runs, it'll format it accordingly -- https://i.imgur.com/RankImg1.png, etc.

MOTD has a character limit...
Forum: Code Snippets/Tutorials 05-01-2022, 20:34
Replies: 132
Sticky: nVault Tutorial
Views: 122,854
Posted By Bugsy
Re: nVault Tutorial

May be unrelated to your current issue but may cause other unexpected behavior.

In a few areas you are assuming a record will be found and that you'll have an iTS value to check. If a record is...
Forum: Code Snippets/Tutorials 05-01-2022, 19:01
Replies: 132
Sticky: nVault Tutorial
Views: 122,854
Posted By Bugsy
Re: nVault Tutorial

The logic I gave you will work, but the way you designed your plugin may need some adjustment to allow it to work.
Forum: Scripting Help 05-01-2022, 12:53
Replies: 11
Views: 428
Posted By Bugsy
Re: Help with top15 MOTD

Try something like this, assuming the rank images are named consistently

"https://i.imgur.com/Rank1.png"
"https://i.imgur.com/Rank2.png"
etc.


public GiveTopInformation(FailState,...
Forum: Code Snippets/Tutorials 05-01-2022, 11:55
Replies: 132
Sticky: nVault Tutorial
Views: 122,854
Posted By Bugsy
Re: nVault Tutorial

If the item is remaining the same, there's no need to call formatex()/nvault_set(), since all you need to do is update the timestamp on an existing record.

public MoreTime( id ) // Buy Time for...
Forum: Code Snippets/Tutorials 04-30-2022, 23:57
Replies: 132
Sticky: nVault Tutorial
Views: 122,854
Posted By Bugsy
Re: nVault Tutorial

Ok, then do not call nvault_prune(), just check if the timestamp is expired how you did above.

if iTS >= get_systime() - Item still valid/not expired
if iTS < get_systime() - Item expired
Forum: Code Snippets/Tutorials 04-30-2022, 23:38
Replies: 132
Sticky: nVault Tutorial
Views: 122,854
Posted By Bugsy
Re: nVault Tutorial

If the intent is to show the menu only if the vault record exists, you'd do:

@SkinsMenu( id )
{
new szData[ 64 ], szID[ 3 ], szVal[ 12 ], iTS, iMenu;

if ( nvault_lookup( g_iVault,...
Forum: Code Snippets/Tutorials 04-30-2022, 22:34
Replies: 132
Sticky: nVault Tutorial
Views: 122,854
Posted By Bugsy
Re: nVault Tutorial

//plugin_cfg - Clear out everything that is in the vault up until current time
//This will eliminate all records that have expired
nvault_prune( vault , 0 , get_systime() );

//give playe...
Forum: Code Snippets/Tutorials 04-30-2022, 22:21
Replies: 132
Sticky: nVault Tutorial
Views: 122,854
Posted By Bugsy
Re: nVault Tutorial

Set the timestamp of the item to a future date when you want it to expire using nvault_touch(). On plugin_cfg(), call nvault_prune( vault , 0 , get_systime() ). When a player attempts to use an item,...
Forum: Suggestions / Requests 04-30-2022, 20:35
Replies: 20
Views: 718
Posted By Bugsy
Re: (Request) Is still impossible to pick up more than 1 weapon?

Above code is updated. It will remember the exact amount of backpack ammo from the player who dropped the weapon.
Forum: Suggestions / Requests 04-30-2022, 13:55
Replies: 20
Views: 718
Posted By Bugsy
Re: (Request) Is still impossible to pick up more than 1 weapon?

Ok, well that's an unspecified requirement, but easy to do. I'm making beer ATM, I'll add that later
Forum: Suggestions / Requests 04-30-2022, 10:30
Replies: 20
Views: 718
Posted By Bugsy
Re: (Request) Is still impossible to pick up more than 1 weapon?

This isn't a bug, it's how the game works... you are picking up someone else's gun that may be out of ammo. When the weapon is picked, you expect to get a full clip and backpack ammo?
Forum: Suggestions / Requests 04-28-2022, 20:12
Replies: 20
Views: 718
Posted By Bugsy
Re: (Request) Is still impossible to pick up more than 1 weapon?

Some credit to Arkshine for his weapon from weaponbox to player code (https://forums.alliedmods.net/showthread.php?t=176704). Not thoroughly tested, and not sure off the top of my head what the slot...
Forum: Suggestions / Requests 04-28-2022, 10:08
Replies: 20
Views: 718
Posted By Bugsy
Re: (Request) Is still impossible to pick up more than 1 weapon?

I'll fix the c4 issue and add cvars so you can set primary/secondary limits
Forum: Suggestions / Requests 04-28-2022, 07:53
Replies: 16
Views: 546
Posted By Bugsy
Re: sql_threadquery - cannot set user flags

You'll need to adjust code in the other plugins to get them to work if they are checking for flags only at authorized. I'm not sure what Natsheh is talking about either.
Forum: Suggestions / Requests 04-27-2022, 18:50
Replies: 20
Views: 718
Posted By Bugsy
Re: (Request) Is still impossible to pick up more than 1 weapon?

https://forums.alliedmods.net/showpost.php?p=1292351&postcount=19?p=1292351&postcount=19
Forum: Suggestions / Requests 04-27-2022, 13:31
Replies: 20
Views: 718
Posted By Bugsy
Re: (Request) Is still impossible to pick up more than 1 weapon?

Yes, I've written this before, try searching
Forum: Suggestions / Requests 04-27-2022, 09:05
Replies: 16
Views: 546
Posted By Bugsy
Re: sql_threadquery - cannot set user flags

I don't know why you think this would help. His problem is this plugin queries for flags at authorized, while other plugins are doing the flags check at authorized. The threaded query returns results...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 09:30.


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