Raised This Month: $ Target: $400
 0% 

Showing results 1 to 25 of 250
Search took 0.03 seconds.
Search: Posts Made By: Rohanlogs
Forum: Scripting Help 05-10-2024, 09:28
Replies: 5
Views: 257
Posted By Rohanlogs
Re: Checking if a process is running on the player's computer

No. How do you figure you'd monitor your players processes without any external software? I mean yeah, sure, walk up to their house, and check their computer. This is just not very practical.

You...
Forum: Scripting Help 05-04-2024, 11:07
Replies: 11
Views: 845
Posted By Rohanlogs
Re: Retrieve data from sql

I just tested this with a local SQLite database, and it seems that AMXX has such an old version of SQLite that it doesn't support CTE's (common table expressions), or window functions like RANK(). I...
Forum: Scripting Help 05-04-2024, 08:17
Replies: 11
Views: 845
Posted By Rohanlogs
Re: Retrieve data from sql

You're trying to integrate the plugin I just gave you inside your own code, you don't need to do all that. You're better off just using the plugin that I posted, and fixing your sql.cfg

The error...
Forum: Scripting Help 05-03-2024, 20:45
Replies: 11
Views: 845
Posted By Rohanlogs
Re: Retrieve data from sql

Have you tried going to amxmodx/configs/sql.cfg, and changing the driver type from "mysql" to -> "sqlite"?

amx_sql_host "<fill in your actual host>"
amx_sql_user "<fill in your actual username>"...
Forum: Scripting Help 04-24-2024, 18:55
Replies: 11
Views: 845
Posted By Rohanlogs
Re: Retrieve data from sql

Its fine, try this. Do you know how to re-compile .sma file?
You need to edit this part of the code:

#define TABLE "zm_top"

Replace "zm_top" with your actual table name. You should have a...
Forum: Scripting Help 04-24-2024, 13:14
Replies: 11
Views: 845
Posted By Rohanlogs
Re: Retrieve data from sql

Hi. Do you have the code for "CREATE TABLE ..." query? Can you post it?
Forum: Scripting Help 03-02-2024, 09:37
Replies: 2
Views: 391
Posted By Rohanlogs
Re: Database load stats error

You have from 45 to 100 columns in your table structure?
That sounds kinda terrible for just saving your stats, but hey as long as it works right?

What do you mean by "all the values ​​in the...
Forum: Scripting 10-05-2023, 18:25
Replies: 8
Views: 1,718
Posted By Rohanlogs
Re: How to get the angle direction between two entities

Hey. Its a nice drawing, but what's the actual problem?

You say "I can't exactly adjust an entity angle direction to my position", also the title of this post suggests there's a problem with...
Forum: Scripting Help 10-02-2023, 17:54
Replies: 3
Views: 685
Posted By Rohanlogs
Re: Hash Password verify in php

This is indeed a bit off-topic for AMXX, however you almost got it, you just need to salt out the password with your salt string. The PHP equivalent would be:

<?php
define('SALT',...
Forum: Suggestions / Requests 04-02-2023, 09:54
Replies: 13
Views: 5,985
Posted By Rohanlogs
Re: [REQUEST] Lower time flashed CS 1.6

I realise this was written half a year ago but since people keep coming back to this, here's the combined version.


// Flash mode
// - 0: Plugin OFF
// - 1: Specified colour
// - 2: Random...
Forum: Suggestions / Requests 02-19-2023, 08:14
Replies: 4
Views: 990
Posted By Rohanlogs
Re: server performance on mysql connection accross other plugins

Yes, I think it would be smarter to have 1 plugin handle the queries.
However it could be a rather tiresome coding task if you have many plugins with a lot of functions and variables, to have them...
Forum: Scripting 05-14-2022, 17:17
Replies: 9
Views: 1,430
Posted By Rohanlogs
Re: MYSQL - My first plugin

I dunno what you mean, MySQL works just fine with sourcemod even with some complex queries.
Its far more superior in data storing than anything else in my opinion when you're dealing with a lot of...
Forum: Scripting Help 05-13-2022, 03:18
Replies: 3
Views: 569
Posted By Rohanlogs
Re: Cross site scripting help

No not even close I've already reported it as off topic
Forum: Scripting Help 05-11-2022, 05:13
Replies: 3
Views: 569
Posted By Rohanlogs
Re: Cross site scripting help

Wait, do you have a PHP file running locally under WAMP & Apache where you're attempting to recieve a Socket connection?
I don't think wamp can handle any WebSocket connections without doing some...
Forum: Suggestions / Requests 11-02-2021, 10:53
Replies: 1
Views: 445
Posted By Rohanlogs
Re: flash time

https://forums.alliedmods.net/showthread.php?t=302343
Forum: Suggestions / Requests 10-18-2021, 14:54
Replies: 13
Views: 5,985
Posted By Rohanlogs
Re: [REQUEST] Lower time flashed CS 1.6

Yes, this happens when you divide by 0 (your cvar is set to 0), which I forgot to check.
You can simply fix this by setting the cvar greater than 0. I added a fixed version as well.
Forum: Plugin/Gameplay Ideas and Requests 09-19-2021, 10:45
Replies: 3
Views: 1,013
Posted By Rohanlogs
Re: [CS:GO] Remove healthshot at round end

A wise man once said



So, try this.


#include <sourcemod>
#include <sdkhooks>
#include <sdktools>
Forum: Plugin/Gameplay Ideas and Requests 08-01-2021, 06:16
Replies: 1
Views: 1,214
Posted By Rohanlogs
Re: Help !! CSGO Surf problem

Hey, this is very little information to go with. I don't know if you've hosted any servers before so I'll just list some obvious things.
It might be just because your server is running 64 tickrate...
Forum: Scripting 05-21-2021, 18:55
Replies: 4
Views: 1,611
Posted By Rohanlogs
Re: [ANY] variable scopes, namespaces, etc

Ah I guess I misunderstood your original question.
You don't have to use prefixes on your global variables, you can just store all your global variables in 1 file and add a bunch of comments of...
Forum: Scripting 05-21-2021, 14:43
Replies: 4
Views: 1,611
Posted By Rohanlogs
Re: [ANY] variable scopes, namespaces, etc

Hey. You sort of answered your own question already. You definitely can do #include "PlayerManager.sp".
If you have a lot of global variables, tons of functions etc. you can just sort them in...
Forum: Scripting Help 05-21-2021, 14:00
Replies: 6
Views: 1,132
Posted By Rohanlogs
Re: [SQLx]Thread worked was unable to start

You're asking how to get rid of an error in code, without showing the code.
Eh..? If you don't want to, you don't have to post the whole script, however we need to see the line where the error...
Forum: General 05-17-2021, 19:26
Replies: 3
Views: 1,255
Posted By Rohanlogs
Re: [CS:GO] SQL_TQuery, script execution timed out

Also adding to this, you have several ALTER TABLE table1 CONVERT TO CHARACTER SET executions on the connect callback too.
Using any ALTER commands on your connect callback is a very bad idea....
Forum: General 05-17-2021, 16:42
Replies: 3
Views: 1,255
Posted By Rohanlogs
Re: [CS:GO] SQL_TQuery, script execution timed out

Hello there!
I checked the code, and you are running ALTER TABLE everytime you're connecting to SQL.
This becomes a problem because you're now attempting to create a new primary key everytime...
Forum: Scripting Help 09-20-2020, 06:57
Replies: 1
Views: 545
Posted By Rohanlogs
Re: Check if user is in CAMERA_3RDPERSON mode

I don't know if such a function exists but if you got the source code of the plugin that sets 3rd person mode you can just create a client boolean to check which camera they're using.
Like here...
Forum: Suggestions / Requests 09-10-2020, 15:48
Replies: 8
Solved Anti fast run
Views: 1,463
Posted By Rohanlogs
Re: Anti fast run

Hey. I'm not sure if this is exactly what you want but you can give this a shot.
It will slightly slow the player down during fastrun.

Here are some cvars:

amx_fastrun_slow_amount "3" //Amount...
Showing results 1 to 25 of 250

 
Forum Jump

All times are GMT -4. The time now is 20:01.


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