Raised This Month: $32 Target: $400
 8% 

Showing results 1 to 25 of 244
Search took 0.01 seconds.
Search: Posts Made By: Rohanlogs
Forum: Scripting Help 03-02-2024, 09:37
Replies: 2
Views: 333
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,509
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: 619
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,706
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: 952
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,393
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: 564
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: 564
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: 435
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,706
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: 978
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,173
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,582
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,582
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,099
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,220
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,220
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: 533
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,442
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...
Forum: Suggestions / Requests 09-09-2020, 13:14
Replies: 2
Views: 850
Posted By Rohanlogs
Re: Small modification on AFK plugin (forums.alliedmods.net/showthread.php?t=256449)

Try replacing line #318 to ' case CS_TEAM_CT: ' and recompile.
Forum: Suggestions / Requests 09-08-2020, 02:33
Replies: 25
Views: 2,353
Posted By Rohanlogs
Re: small edit please.

It does slay on the 4th warning in a row with a 5 second delay as requested. This is to confirm that the player is using high FPS and to avoid false positives. I've removed the warning message.
If...
Forum: Suggestions / Requests 09-07-2020, 13:10
Replies: 25
Views: 2,353
Posted By Rohanlogs
Re: small edit please.

Eh, it looks a bit messy..
Lag spikes can cause players to get slayed for no reason since you don't even have warning count, and also because of this fps limit should be somewhere in 110.
I never...
Forum: General 07-21-2020, 02:50
Replies: 4
Views: 981
Posted By Rohanlogs
Re: No Access PREFIX

Hello friend.
I shamelessly ripped some code from here: https://forums.alliedmods.net/showthread.php?p=1729023
Is this for csgo? Try this:
#include <sourcemod>
#pragma semicolon 1
#pragma...
Forum: Scripting 07-18-2020, 13:01
Replies: 3
Views: 1,146
Posted By Rohanlogs
Re: Loading and saving data using mysql db

Hey.
Some things I would change here.
Reset player_credits also on disconnect, create a global variable for clients steamid as you should fetch it only once since its used often.
You don't have...
Forum: Scripting Help 07-17-2020, 16:52
Replies: 5
Views: 744
Posted By Rohanlogs
Re: Converting nVault to Mysql

How about the queries if there are many entries? Like thousands?
If you loop through all of the nvault data and execute a query on every loop I'm pretty sure the server will crash.
I'm not aware of...
Showing results 1 to 25 of 244

 
Forum Jump

All times are GMT -4. The time now is 00:47.


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