Raised This Month: $108 Target: $400
 27% 

Showing results 1 to 25 of 500
Search took 0.16 seconds.
Search: Posts Made By: Bugsy
Forum: Scripting Help Yesterday, 14:09
Replies: 17
Solved random
Views: 228
Posted By Bugsy
Re: random

That's great, lol. But the code works fine.
Forum: Scripting Help Yesterday, 13:49
Replies: 17
Solved random
Views: 228
Posted By Bugsy
Re: random

This is basically what Natsheh suggested in his first post:


#include <amxmodx>
#include <amxmisc>

const MaxNumber = 30;
const ExcludeNumbers = ( ( 1 << 13 ) | ( 1 << 22 ) );

new...
Forum: Scripting Help 01-20-2018, 20:15
Replies: 26
Views: 268
Posted By Bugsy
Re: 2D Array in Enum | cs_get_weapon_id in FM_SetModel

What is your question? Your latest post just says "Any ideas"
Forum: Suggestions / Requests 01-20-2018, 20:08
Replies: 59
Views: 2,117
Posted By Bugsy
Re: [REQ] Play Time

The above should do what you want. It was already checking all players every ground and granting permissions based on play time but without a message saying so. I added a message when VIP is granted....
Forum: Suggestions / Requests 01-20-2018, 13:59
Replies: 6
Views: 113
Posted By Bugsy
Re: [REQ] Small ADMIN_LEVEL help

You could also do the below but I think it is cleaner to define the access flag when defining the command in register_clcmd() as shown above.
if ( !( get_user_flags( id ) & ADMIN_BAN ) )
{
...
Forum: Suggestions / Requests 01-20-2018, 13:30
Replies: 59
Views: 2,117
Posted By Bugsy
Re: [REQ] Play Time

You need to tell me how it should work specifically. I don't want to code it how I would want it to work for you to say change it to something else.
Forum: Suggestions / Requests 01-20-2018, 12:09
Replies: 6
Views: 113
Posted By Bugsy
Re: [REQ] Small ADMIN_LEVEL help

register_clcmd( "remprefix" , "RemovePrefix" , ADMIN_BAN , "Removes a players prefix" );

public RemovePrefix( id , level , cid )
{
if ( !cmd_access( id , level , cid , 1 ) )
{...
Forum: Scripting Help 01-18-2018, 22:17
Replies: 32
Views: 847
Posted By Bugsy
Re: Sockets query website : GET

Try something like this:

static szVariable[ 2 ][ 32 ] , szParse[ 64 ] , iPos;

copy( g_Data , 128 , "Updater Details ^"current_version^" ^"1^" ^"last_update^" ^"critical^" ^"i_like^" ^"beer^"...
Forum: Scripting Help 01-18-2018, 07:35
Replies: 32
Views: 847
Posted By Bugsy
Re: Sockets query website : GET

Show a sample of real world data with multiple plugins. If you're trying to differentiate plugins then you may want to go a different route. Maybe pluginname variable value all side by side, or use...
Forum: Suggestions / Requests 01-18-2018, 07:34
Replies: 59
Views: 2,117
Posted By Bugsy
Re: [REQ] Play Time

Its done above
Forum: Scripting Help 01-17-2018, 22:55
Replies: 32
Views: 847
Posted By Bugsy
Re: Sockets query website : GET

Updater Details\n"current_version" "1"\n

Is there any reason why you are using '\n' in your text? If this is strictly for feeding data to your plugin I would keep it more basic, like the...
Forum: Suggestions / Requests 01-17-2018, 18:37
Replies: 59
Views: 2,117
Posted By Bugsy
Re: [REQ] Play Time

Edit: The above version fixed the menu issue for both the VIP and Blacklist menu. I also have it checking every round for new VIP based on play time. I do not think a player changing his name would...
Forum: Scripting Help 01-16-2018, 20:32
Replies: 50
Views: 670
Posted By Bugsy
Re: weaponbox/armoury_entity Touch

Try my Armoury Manager plugin and see if entity's created by the plugin work.
Forum: Scripting Help 01-16-2018, 19:09
Replies: 50
Views: 670
Posted By Bugsy
Re: weaponbox/armoury_entity Touch

No, like the weapons on fy_iceworld.
Forum: Scripting Help 01-16-2018, 18:42
Replies: 50
Views: 670
Posted By Bugsy
Re: weaponbox/armoury_entity Touch

Can you pick up map-created armoury_entity's?
Forum: Scripting Help 01-16-2018, 07:36
Replies: 50
Views: 670
Posted By Bugsy
Re: weaponbox/armoury_entity Touch

Good point, yes by remove I meant remove from a player perspective aka it will disappear but the entity will remain intact. HamletEagles thread covers all of this stuff, I suggest creating a test...
Forum: Scripting Help 01-15-2018, 21:13
Replies: 50
Views: 670
Posted By Bugsy
Re: weaponbox/armoury_entity Touch

Yes, setting the count to 0 will make it invisible and > 0 it will be visible/touchable. It does the work for you.
Forum: Scripting Help 01-14-2018, 20:19
Replies: 5
Solved Top 10
Views: 123
Posted By Bugsy
Re: Top 10

I would use a 2D array loaded with player-id's and frag counts. Then sort the array by frags descending and then your 0-9 indecies are your top 10 fraggers.

Here's an example where you can set the...
Forum: Scripting Help 01-14-2018, 20:05
Replies: 19
Solved Loop order
Views: 345
Posted By Bugsy
Re: Loop order

I would do a step by step debug. You have a good understanding of the process your plugin takes to do things. At each step I would put a print and you can then determine which code is getting reached...
Forum: Suggestions / Requests 01-14-2018, 20:00
Replies: 5
Views: 105
Posted By Bugsy
Re: Weapon Detect

You can only check 1 weapon with that native. If you need to check multiple with a single call, you can use pev_weapons (fakemeta) using a bit-wise OR for each weapon.

new iWeapons = pev( id ,...
Forum: Scripting Help 01-14-2018, 01:28
Replies: 3
Views: 101
Posted By Bugsy
Re: Right Моusе Аttасk

See if this helps: https://forums.alliedmods.net/showthread.php?t=97393
Forum: Scripting Help 01-13-2018, 20:14
Replies: 11
Views: 152
Posted By Bugsy
Re: Find the last line

//Open file for update (reading and writing).
new iFile = fopen( "file.txt" , "r+" );

//Buffer to read 1 single byte.
new bytVal[ 1 ];

//Buffer for new line to write.
new szNewLine[ 32 ];
...
Forum: Suggestions / Requests 01-13-2018, 17:19
Replies: 59
Views: 2,117
Posted By Bugsy
Re: [REQ] Play Time

Above code is updated. If a player joins and already has VIP flag, the plugin will completely ignore him (no data saving at all).
Forum: Scripting Help 01-13-2018, 17:14
Replies: 11
Views: 152
Posted By Bugsy
Re: Find the last line

That's the same thing that I told, except that will always write starting with new-line.

So if the last written line included a new-line at the end, you will end up with a blank line in the file....
Forum: Scripting Help 01-13-2018, 16:03
Replies: 11
Views: 152
Posted By Bugsy
Re: Find the last line

That depends on the last person/app that wrote to the file.

You would either need to write "[newline]new line of text" or "new line of text[newline]"

To be safe, I would always read the 2...
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 17:37.


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