Monthly Target: $400 Donations: $76
 19% 

Showing results 1 to 25 of 500
Search took 0.06 seconds.
Search: Posts Made By: Bugsy
Forum: Scripting Help Today, 16:53
Replies: 13
Views: 36
Posted By Bugsy
Re: [HELP] Format a message?

You need to make sure each kill status has a %s somewhere in it and that you have a cvar defined for each kill status type.

#include <amxmodx>

enum KillStatus
{
LeaderHuman,
LastHuman,...
Forum: Scripting Help Today, 16:39
Replies: 13
Views: 36
Posted By Bugsy
Re: [HELP] Format a message?

Does every one have a cvar value that needs to go in it? Are they all a string?
Forum: Scripting Help Today, 16:24
Replies: 13
Views: 36
Posted By Bugsy
Re: [HELP] Format a message?

I created an enumerator (KillStatus) to define items (LeaderHuman,LastHuman,ThisInstead2,ThisInstead3). Defining a variable with this tag will make it expect to hold only one of the items that I...
Forum: Scripting Help Today, 16:10
Replies: 13
Views: 36
Posted By Bugsy
Re: [HELP] Format a message?

enum KillStatus
{
LeaderHuman,
LastHuman,
ThisInstead2,
ThisInstead3
}

new const KillStatusMsg[ KillStatus ][] =
{
Forum: Scripting Help Today, 15:38
Replies: 13
Views: 36
Posted By Bugsy
Re: [HELP] Format a message?

You may need to do what you are already doing. The if checking will stop when it hits a true condition so if there's a chance of a player having more than 1 condition, put them in the order of...
Forum: Scripting Help Today, 14:45
Replies: 13
Views: 36
Posted By Bugsy
Re: [HELP] Format a message?

I don't understand what you're trying to do, can you try to explain better? Maybe give some examples.
Forum: Scripting Help Yesterday, 23:05
Replies: 8
Views: 126
Posted By Bugsy
Re: Saving/Loading API for .ini/.cfg?

The thing with nvault is it is saved in binary format so you cannot read/modify the data in a text editor. You need to use an nvault editor for this (see signature). I'm not sure if this matters to...
Forum: Scripting Help Yesterday, 13:24
Replies: 8
Views: 126
Posted By Bugsy
Re: Saving/Loading API for .ini/.cfg?

You have many options, easiest would be vault or nvault.

With regular vault (get_vaultdata, set_vaultdata, remove_vaultdata, vaultdata_exists), it is saved in plain-text format so you could go...
Forum: Scripting Help Yesterday, 11:06
Replies: 11
Views: 258
Posted By Bugsy
Re: Detecting noclip

Public since 2008

https://forums.alliedmods.net/showthread.php?p=689045?p=689045
Forum: Code Snippets/Tutorials 02-12-2016, 21:01
Replies: 62
Sticky: nVault Tutorial
Views: 32,168
Posted By Bugsy
Re: nVault Tutorial

public SaveGravity( id )
{
new szKey[40] , szGravity[11] , szAuthID[35];

@@ get_user_authid( id, szAuthID, charsmax( szAuthID ) );
//You should store all player id's in a global array so it...
Forum: Scripting Help 02-12-2016, 20:49
Replies: 19
Views: 277
Posted By Bugsy
Re: [HELP] Set_Task question

To not confuse him, KliPPy means having a 32 increment buffer between task-ids that are for a different purpose, not a separate task id for player1, player2, etc. Your naming could be taken the wrong...
Forum: Scripting Help 02-12-2016, 19:31
Replies: 19
Views: 277
Posted By Bugsy
Re: [HELP] Set_Task question

You can also specify the parameter directly instead of using placeholders.

set_task(3.0, ,"lighting_task", TASK_LIGHT, _, _, "b");

set_task(3.0, ,"lighting_task", TASK_LIGHT, .flags="b"); ...
Forum: Scripting Help 02-12-2016, 19:04
Replies: 11
Views: 258
Posted By Bugsy
Re: Detecting noclip

That's the idea. This is how my Aimbot Detection plugin works.
Forum: Scripting Help 02-12-2016, 09:25
Replies: 11
Views: 258
Posted By Bugsy
Re: Detecting noclip

Check EngFunc_PointContents != CONTENTS_SOLID before removing noclip. IIRC, this is what I check in my aimbot detection plugin before spawning a bot over a players head.
Forum: New Plugin Submissions 02-09-2016, 23:09
Replies: 22
Views: 1,066
Posted By Bugsy
Re: Armoury Manager

Update posted.
0.3 Changed am_info to make it able to display all entities by allowing the user to specify the starting index as an optional parameter. 12 are displayed per cmd/MOTD.
0.3 Fixed...
Forum: Scripting Help 02-09-2016, 20:52
Replies: 12
Views: 323
Posted By Bugsy
Re: (help) HudSyncObject error

I don't have time to really dig through all of your code to find the answer. It will be much easier for you to do this because you know how it works. Like I said in my previous post, you need to...
Forum: Scripting Help 02-09-2016, 20:22
Replies: 12
Views: 323
Posted By Bugsy
Re: (help) HudSyncObject error

Yes, all variables are initialized at 0 when first created unless you change the value. So when players first join and no value is assigned, it will be 0. So if PlayerLevel[ id ] = 0 then LEVELS[...
Forum: Suggestions / Requests 02-09-2016, 20:13
Replies: 1
Views: 74
Posted By Bugsy
Re: I have problem on VIP Knife Menu

You didn't check your logs. Your plugin is throwing an error once it loads because you are registering forwards without the appropriate callback function. Any time your plugin does not respond to...
Forum: Off-Topic / General Chat 02-08-2016, 21:26
Replies: 43
Views: 2,547
Posted By Bugsy
Re: [Alpha Test]Fanxy Studio(Universal IDE with AMXX support)

I'm not sure if there's something I'm missing here. If a person who uses this has amxx installed (which I assume anyone who downloads this does), they already have a compiler and includes for their...
Forum: Scripting Help 02-08-2016, 21:12
Replies: 8
Views: 162
Posted By Bugsy
Re: Arrange huds under each other

You can make them go down in a line, a circle, random, or anything you want. You just need to fill the array with the X,Y coords.

#include <amxmodx>

enum HUDPos
{
Float:HUD_X,
Float:HUD_Y...
Forum: Scripting Help 02-08-2016, 20:29
Replies: 8
Views: 162
Posted By Bugsy
Re: Arrange huds under each other

If you want random without one overlapping another you will need to do work to make sure one is not over another, whether partially or totaly.

Instead of random, I would define an array of 5-10...
Forum: Scripting Help 02-08-2016, 19:34
Replies: 8
Views: 162
Posted By Bugsy
Re: Arrange huds under each other

If you want them all there but not overwriting each other, change the X/Y coordinates in set_hudmessage().
Forum: Off-Topic / General Chat 02-07-2016, 20:42
Replies: 43
Views: 2,547
Posted By Bugsy
Re: [Alpha Test]Fanxy Studio(Universal IDE with AMXX support)

Bugsy,
You can select path to compiler in AMXProject Module setups.
What is the reason you are including the amxx compiler binary and includes? Why not let the user select its location like AMX-X...
Forum: Suggestions / Requests 02-07-2016, 20:14
Replies: 12
Views: 280
Posted By Bugsy
Re: [Req] Nvault Rank

nVault was not designed for any type of ordering or querying. You can accomplish this, but it requires a lot of work which can be accomplished easier using other methods. For nVault, you must use...
Forum: Scripting Help 02-07-2016, 14:59
Replies: 8
Views: 162
Posted By Bugsy
Re: Arrange huds under each other

You can use sync huds and clear it before you show
//plugin_init()
g_HUDSyncObj = CreateHudSyncObj();

//Show HUD
ClearSyncHud( 0 , g_HUDSyncObj );
set_hudmessage( 255 , 255 , 0 , -1.0 , 0.25 ,...
Showing results 1 to 25 of 500

 
Forum Jump

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


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