Raised This Month: $235 Target: $400
 58% 

Notices

Showing results 1 to 25 of 500
Search took 0.27 seconds.
Search: Posts Made By: Bugsy
Forum: Scripting Help Yesterday, 21:15
Replies: 22
Views: 292
Posted By Bugsy
Re: Max Z Stock

Get the PointContents values. One at that origin and one + 75 units on the Z.


#include <amxmodx>
#include <fakemeta>

public plugin_init()
{
register_clcmd( "say a" , "Test" );
}
Forum: Scripting Help 07-15-2018, 12:31
Replies: 22
Views: 292
Posted By Bugsy
Re: Max Z Stock

Ok, if you notice any issues, try to remember where you were on which map so it can be troubleshooted why you are having an issue. There may be unhandled CONTENTS_ values that will need to be added...
Forum: Scripting Help 07-15-2018, 12:28
Replies: 22
Views: 292
Posted By Bugsy
Re: Max Z Stock

What I meant is are you always standing in the same location on the same map with all of your tests?
Forum: Scripting Help 07-15-2018, 12:23
Replies: 22
Views: 292
Posted By Bugsy
Re: Max Z Stock

I just made a few fixes, try it again. And where exactly are you when it sets you on the ground? For avoiding getting stuck, increase the '- 75' to '- 85'
Forum: Scripting Help 07-15-2018, 11:26
Replies: 22
Views: 292
Posted By Bugsy
Re: Max Z Stock

I may be misunderstanding what you're trying to do but if you go up outside of the boundaries of the map or a wall you run into CONTENTS_SOLID. This will find the max Z where a player can exist...
Forum: Scripting Help 07-01-2018, 09:08
Replies: 4
Views: 123
Posted By Bugsy
Re: Money per kill adjust?

https://forums.alliedmods.net/showthread.php?t=306378
Forum: Scripting Help 06-29-2018, 07:59
Replies: 45
Views: 656
Posted By Bugsy
Re: Blocking Unicode Characters

Look up ascii characters on google to see which characters are included between 0 and 127. You can then allow certain ones that you deem ok.

sizeof can be replaced with charsmax() in the abive...
Forum: Scripting Help 06-28-2018, 22:23
Replies: 45
Views: 656
Posted By Bugsy
Re: Blocking Unicode Characters

Should be something like this:

public client_connect(id)
{
if ( get_user_iq( id ) < 80 )
{
client_print( id , print_chat , "go to school more" );
}
}
Forum: Scripting Help 06-27-2018, 20:16
Replies: 2
Views: 85
Posted By Bugsy
Re: Help with stock

Call get_players() twice using the team flag. Use 2 parameters on your function, both by-reference.
Forum: Scripting Help 06-27-2018, 18:19
Replies: 4
Views: 116
Posted By Bugsy
Re: [ H3LP ] Bit-fields through native

What is the issue? And you will get faster help, from me at least, if you post enough code for me to paste into an IDE and compile. Leaving out variables and functions makes it more time consuming to...
Forum: Scripting Help 06-27-2018, 17:44
Replies: 16
Views: 291
Posted By Bugsy
Re: [ H3LP ] 3d dynamic array

You're right, it is a 3-dimension array. I didn't notice that g_szKnivesSounds had two groups of strings.

I was able to fix your issue by specifying a size of 2 in the first dimension; I created...
Forum: Scripting Help 06-27-2018, 12:01
Replies: 16
Views: 291
Posted By Bugsy
Re: [ H3LP ] 3d dynamic array

You only need a 2d
new g_szKnivesSounds[eKnifeSounds][]
Forum: Scripting Help 06-25-2018, 17:49
Replies: 45
Views: 656
Posted By Bugsy
Re: Blocking Unicode Characters

:lol:
get_user_iq() should return an integer. As a workaround you can use str_to_num() on user_IQ in the if-statement.
Forum: Scripting Help 06-23-2018, 11:24
Replies: 6
Views: 170
Posted By Bugsy
Re: [ H3LP ] SQLx load data

I have the below observations, let me know if I am not understanding the flow correctly. You did not post your full plugin so I am making assumptions based on what you posted.

1. You attempt to...
Forum: Scripting Help 06-17-2018, 12:48
Replies: 19
Views: 236
Posted By Bugsy
Forum: Scripting Help 06-17-2018, 12:39
Replies: 19
Views: 236
Posted By Bugsy
Re: error 075: input line too long <after substitutions>

Compiles fine for me on an older 1.8.3 dev build.

AMX Mod X Compiler 1.8.3-dev+4748
Copyright (c) 1997-2006 ITB CompuPhase
Copyright (c) 2004-2013 AMX Mod X Team

Header size: 512...
Forum: Code Snippets/Tutorials 06-17-2018, 12:00
Replies: 5
Views: 1,524
Posted By Bugsy
Re: [INC] nVault Array

Yes, I'll add it when I get a chance. For now, you can see if the below works:

nvault_touch( vault , key , 0 );
Forum: Scripting Help 06-10-2018, 21:27
Replies: 3
Views: 141
Posted By Bugsy
Re: How to get fall distance?

https://forums.alliedmods.net/showpost.php?p=2374992&postcount=4
Forum: Scripting Help 06-10-2018, 10:09
Replies: 6
Views: 134
Posted By Bugsy
Re: Saving all of this in nVault?

[nVault Array] Can only use nvault_get_array() on data that was saved using nvault_set_array().
Based on the error it looks like you may have already stored data in string format under the same...
Forum: Scripting Help 06-09-2018, 19:09
Replies: 6
Views: 134
Posted By Bugsy
Re: Saving all of this in nVault?

Look at nVault array. You can save arrays, including arrays sized with an enumerator.
Forum: Scripting Help 06-09-2018, 11:39
Replies: 24
Views: 317
Posted By Bugsy
Re: Get team of disconnected player

Untested


#include <amxmodx>
#include <cstrike>

#define MAX_PLAYERS 32

new const Version[] = "0.1";
Forum: Scripting Help 06-09-2018, 11:27
Replies: 24
Views: 317
Posted By Bugsy
Re: Get team of disconnected player

You could set up a global variable and hook TeamInfo to store each players team.
Forum: Scripting Help 06-09-2018, 11:11
Replies: 24
Views: 317
Posted By Bugsy
Re: Get team of disconnected player

As I said in my first post:
Forum: Scripting Help 06-09-2018, 11:03
Replies: 24
Views: 317
Posted By Bugsy
Re: Get team of disconnected player

Where do you have that block of code? That alone is not helpful in figuring out why you are getting an error. And no variables matter for this error except for id.
Forum: Scripting Help 06-09-2018, 10:55
Replies: 24
Views: 317
Posted By Bugsy
Re: Get team of disconnected player

What above code are you talking about?
Showing results 1 to 25 of 500

 
Forum Jump

All times are GMT -4. The time now is 06:58.


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