Raised This Month: $51 Target: $400
 12% 

Showing results 1 to 18 of 18
Search took 0.00 seconds.
Search: Posts Made By: Kryptanyte
Forum: Scripting 11-19-2017, 03:34
Replies: 7
Views: 1,549
Posted By Kryptanyte
Re: how to? point c intersects line created by points a and b?

You could use something like this which I think is a bit simpler than what hmmmmm suggested.


stock bool IsPointOnLine(float a[3], float b[3], float c[3])
{
return (GetVectorDistance(a,c) +...
Forum: Scripting 06-24-2017, 10:43
Replies: 4
Views: 907
Posted By Kryptanyte
Re: How does one store vectors in an `any` array?

I don't know if this will still work with an any array but it works with int arrays


enum Vector_Struct
{
Float:vector[3],
SETTINGS_SIZE
}

int MyVector[Vector_Struct];
Forum: Scripting 06-24-2017, 04:41
Replies: 44
Views: 6,734
Posted By Kryptanyte
Re: Infractions - The Early Stages

hmmmmm is 100% correct. It's less of a strain on the server to pull the information you need from the database and store it in variables within the plugin you can reference in other places. You will...
Forum: Scripting 06-22-2017, 20:56
Replies: 44
Views: 6,734
Posted By Kryptanyte
Re: Infractions - The Early Stages

Just looking at your code I realize you can shorten a function by doing this (that was my bad haha):


public OnClientPostAdminCheck(int client)
{
if(!IsValidClient(client))
return;

...
Forum: Scripting 06-20-2017, 22:44
Replies: 44
Views: 6,734
Posted By Kryptanyte
Re: Infractions - The Early Stages

I stand corrected, I'm not well versed in most of the event but index is their entity index at least, not sure about client index though. It's safer to get their userid and use GetClientOfUserId() as...
Forum: Scripting 06-19-2017, 21:06
Replies: 44
Views: 6,734
Posted By Kryptanyte
Re: Infractions - The Early Stages

I'm not sure what event you've hooked here for this function so I don't know what variables you can get from it but I can tell you that GetEventInt() returns it's value like so:


int index =...
Forum: Scripting 06-18-2017, 07:59
Replies: 2
Views: 750
Posted By Kryptanyte
Re: Help a noob set up SQL for their server.

Not that difficult at all. I suggest you take a look at the wiki entry:

https://wiki.alliedmods.net/SQL_(SourceMod_Scripting)

I believe if you use SQLite you have to create database tables via...
Forum: Scripting 06-17-2017, 01:22
Replies: 1
Views: 579
Posted By Kryptanyte
Re: Quick question

Here's a wiki page that will help you out with new syntax:
https://wiki.alliedmods.net/SourcePawn_Transitional_Syntax

But the answer to your question is

int g_Beamsprite;
Forum: Scripting 06-15-2017, 22:32
Replies: 44
Views: 6,734
Posted By Kryptanyte
Re: Infractions - The Early Stages

You're not necessarily missing anything but you don't need to have the last else statement. You can keep the return at the end of the function:

public void OnCustomCommandChange(ConVar convar,...
Forum: Scripting 06-01-2017, 23:00
Replies: 10
Views: 1,584
Posted By Kryptanyte
Re: A few questions on the new syntax.

Yes, if you do return something be sure to replace void with the return type. Also a note on public, you don't HAVE to define all functions as public unless they are going to be accessed from outside...
Forum: Scripting 05-29-2017, 17:08
Replies: 2
Views: 683
Posted By Kryptanyte
Re: Error - Player Index 0 is not valid

It'll actually be from the line below where you indicated.


public bool IsValidClient(int Client)
{
return (Client >= 1 && Client <= MaxClients);
}

public void OnClientPutInServer(int...
Forum: Unapproved Plugins 05-10-2017, 17:34
Replies: 2,853
Views: 1,103,587
Posted By Kryptanyte
Re: [CS:GO] ckSurf (1.18f, 24.11.2015)

If you !pause before switching to spectator you will be able to resume your run when you rejoin a team. There is no pause mechanic for just switching straight into spectator as far as I am aware
Forum: Unapproved Plugins 04-21-2017, 22:36
Replies: 2,853
Views: 1,103,587
Posted By Kryptanyte
Re: [CS:GO] ckSurf (1.18f, 24.11.2015)

I'm aware this is the broken statement but you could always compile the checkpoints into one large string/text field, means you aren't limited to x number of checkpoints without changing the db...
Forum: Plugin/Gameplay Ideas and Requests 03-28-2017, 00:05
Replies: 1
Views: 830
Posted By Kryptanyte
Re: Looking for a CSGO Coder

Have you tried Shavit's bhop timer?

https://forums.alliedmods.net/showthread.php?t=265456
Forum: Plugin/Gameplay Ideas and Requests 01-27-2017, 18:49
Replies: 12
Views: 2,308
Posted By Kryptanyte
Re: [ANY/CS:GO] Enable/Disable Server2 based on Server1 playercount

Case in point: https://wiki.theory.org/YourLanguageSucks

In regards to the actual topic. Is there not a way to send/receive data via webpage in sourcemod or an existing extension. If so it should...
Forum: Unapproved Plugins 01-04-2017, 14:47
Replies: 2,853
Views: 1,103,587
Posted By Kryptanyte
Re: [CS:GO] ckSurf (1.18f, 24.11.2015)

Have you edited the plugin at all? It's possible there could be a problem with your MySQL server, have you tried using a different host to debug?

The errors you're getting (if you haven't edited...
Forum: Plugin/Gameplay Ideas and Requests 12-29-2016, 19:50
Replies: 6
Views: 1,144
Posted By Kryptanyte
Re: Must Have Plugin Idea?

I don't think it's completely impossible, iirc shavits is using a local file for styles and defines the commands to change to that style through the config. It's just loaded on plugin start and loops...
Forum: Scripting 10-07-2016, 15:02
Replies: 5
Views: 1,360
Posted By Kryptanyte
Re: Multiple queries (or queries queue)

I'm not sure if I'm right about this but starting a query inside the for loop will break it (end the for loop) and wait for the query to respond.

You could try using transactions instead of doing...
Showing results 1 to 18 of 18

 
Forum Jump

All times are GMT -4. The time now is 22:52.


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