Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 303 online users. » 0 Member(s) | 300 Guest(s) Google, Yandex, Bing
|
Latest Threads |
[Request] Linko Gaming Ro...
Forum: General Discussions
Last Post: JamesC
7 hours ago
» Replies: 0
» Views: 10
|
RevolutionX DM/Stunt/Race...
Forum: Advertisements
Last Post: DerekZ905
2025-06-18, 03:12 PM
» Replies: 0
» Views: 49
|
samp-cef
Forum: Questions and Suggestions
Last Post: jamespssamp
2025-06-18, 11:36 AM
» Replies: 0
» Views: 30
|
SA-MP Crash
Forum: General Discussions
Last Post: davidfreeman
2025-06-11, 04:58 AM
» Replies: 0
» Views: 164
|
Offering Pawn Scripting S...
Forum: Pawn Scripting
Last Post: Mido
2025-06-07, 01:30 PM
» Replies: 0
» Views: 257
|
How to make your GTA SA:M...
Forum: Tutorials
Last Post: NoxxeR
2025-06-07, 06:48 AM
» Replies: 3
» Views: 1,202
|
discord ban
Forum: Support
Last Post: NickS
2025-06-07, 06:23 AM
» Replies: 2
» Views: 483
|
Sons of silence Motorcycl...
Forum: Advertisements
Last Post: thongek.wpm
2025-06-03, 02:24 PM
» Replies: 0
» Views: 353
|
Empire Freeroam Roleplay ...
Forum: Advertisements
Last Post: krishgamer1964
2025-06-03, 11:25 AM
» Replies: 0
» Views: 412
|
Script[gamemodes/gamemode...
Forum: Pawn Scripting
Last Post: jeppe9821
2025-06-01, 09:27 AM
» Replies: 0
» Views: 393
|
|
|
denNorske's SA-MP Query Cache Proxy |
Posted by: denNorske - 2019-04-14, 09:08 AM - Forum: Releases
- Replies (9)
|
 |
SA-MP Query Cache Proxy
(Made in python3.7)
Hosted tab servers are facing a massive spam of spoofed UDP packets. The servers simply have no chance to respond to all the fake query requests, and becomes overworked. This ends up with servers not appearing online in the samp client, and if they appear, lots of information don't appear.?
UPDATE: Attack has calmed down (14th of april 2019)
This package will take all the "shit" from the fake packages and respond with a cached response from the samp server. The proxy sends a request to the samp server every few second to cache latest info, which it so sends further to the client that requests it. This shields the samp server and makes it appear normally in everyone's clients. It has been tested on my community and some other servers, and the effect is very noticeable.?
Why python??
Well, python was the only other language besides PAWN and C# that I knew in 2019, and it was the only contribution I could make together with my friend Nick. Now that I also know a bit of C, Javascript and such, but considering it works so well, it's fair enough to say that it may remain using python.
This project is written by frxstrem, nick and me, and everyone's welcome to contribute with better solutions by creating pull requests from separate branches. It has been tested under load of a UDP spam on approximately 3500 pps. It takes up one entire thread of a CPU on a I7-8700k.
Unfortunately, this method will only work on VPS's/VDS's where you have full access to the host system. Python code requires iptables rules to be applied.
How to run the python script in background;?
1: Code: python3 pack-scan.py &
2:Then use: to avoid it closing with the terminal, when you leave the SSH session, or close the terminal.
Disclaimer: I am in no way responsible for misconfigurations or changes done by you. You should understand what iptables do and what my code do before you use it.
Query Mechanism information: Click here
READ ME: https://github.com/dennorske/samp-packet.../README.md
Known issues:?- Under load, script tends to stop working after approximately a week. You can set up a simple bash script to restart it automatically (Fixed March 19th 2021)
- game-state and SACNR monitor queries are not responded correctly, causing graphs to not show or show incorrectly.
Visual of the Query mechanism with the script running (Assuming iptables works correctly) :
![[Image: 68747470733a2f2f706963732e6475636b792e72...322e706e67]](https://camo.githubusercontent.com/d58f13170da00082ad256c095d149919c1a47037b0f598e29479afdc50f5c2d8/68747470733a2f2f706963732e6475636b792e726f636b732f696d616765732f323032302f30342f32302f556e7469746c65642d4469616772616d2d322e706e67)
LINK TO REPOSITORY/Download https://github.com/dennorske/samp-packet-proxy
Disabling the cache/removing IPtable rules:
In order to remove the rules you've added from IPtables, please replace "-A" or "-I", with "-D" in the commands.
You need to make sure you write the exact same commands, else it will fail. (if you changed ports, use those ports, and replace -A with -D for example)
|
|
|
Burgershot |
Posted by: Mugsy - 2019-04-14, 07:56 AM - Forum: General Discussions
- Replies (18)
|
 |
Very good dear community.
I come to ask several questions.
Why Burgershoot? What is the purpose of the project? When will more official information be given?
I think that very soon news will be given and this project has a good path if it is administered well and does not pass up as SAMP.
Sorry for the google translator.
|
|
|
SampBcrypt |
Posted by: SyS - 2019-04-14, 07:41 AM - Forum: Plugins
- Replies (14)
|
 |
SampBcrypt
A bcrypt plugin for samp in Rust.
Installation
sampctl
If you are a sampctl user
sampctl p install Sreyas-Sreelal/samp-bcrypt
OR
- Download suitable binary files from releases for your operating system
- Add it your plugins folder
- Add samp_bcrypt to server.cfg or? samp_bcrypt.so (for linux)
- Add samp_bcrypt.inc in includes folder
Building
API
- bcrypt_hash(playerid,callback[],input[],cost)
- playerid - id of the player
- callback[] - callback to execute after hashing
- input[] - string to hash
- cost - work factor (4 - 31)
- Example
PHP Code: main(){ bcrypt_hash(0,"OnPassswordHash","text",12); }
forward OnPassswordHash(playerid); public OnPassswordHash(playerid){ //hashing completed }
- bcrypt_get_hash(dest[],size = sizeof(hash))
- dest[] - string to store hashed data
- size - max size of dest string
- Example
PHP Code: main(){ bcrypt_hash(0,"OnPassswordHash","text",12); }
forward OnPassswordHash(playerid); public OnPassswordHash(playerid){ new dest[250]; bcrypt_get_hash(dest); printf("hash : %s",dest); }
- bcrypt_verify(playerid,callback[],input[],hash[])
- playerid - id of the player
- callback[] - callback to execute after hashing
- input[] - text to compare with hash
- hash[] - hash to compare with text
- Example
PHP Code: main(){ bcrypt_hash(0,"OnPassswordHash","text",12); }
forward OnPassswordHash(playerid); public OnPassswordHash(playerid){ new dest[250]; bcrypt_get_hash(dest); bcrypt_verify(playerid,"OnPassswordVerify","text",dest); }
forward OnPassswordVerify(playerid,bool:success); public OnPassswordVerify(playerid,bool:success){ //success denotes verifying was successful or not if(success){ //verfied } else{ //hash doesn't match with text } }
- bcrypt_set_thread_limit(value)
- value - number of worker threads at a time
- Example
PHP Code: main(){ bcrypt_set_thread_limit(3); }
|
|
|
samp-ai-chatbot |
Posted by: SyS - 2019-04-14, 07:27 AM - Forum: Releases
- Replies (2)
|
 |
samp-ai-chatbot
This is? sample ai chatting bot using aiml,flask,pyaiml and pawn for sa-mp.You can add your own aiml files in sampai.aiml to change the bot behaviour.The current aiml files is from AI Foundation?s A.L.I.C.E. bot.
How to use this script?
- Clone this repository
git clone https://www.github.com/sreyas-sreelal/sa...hatbot.git
- Compile the sample bot script in filterscripts folder and add them to your server project
- Install python (i recommend python 3.5 versions) dependencies using pip
pip install flask python-aiml
- Start the web server using the script start.py in web-server folder
python3 start.py
- Start your samp server and use the command /ask <message> to talk with the bot
Dependencies
pawn (to run sample script)
python (to run web server)
Images
![[Image: pic1.png?raw=true]](https://github.com/Sreyas-Sreelal/samp-ai-chatbot/raw/master/pics/pic1.png?raw=true)
![[Image: pic2.png?raw=true]](https://github.com/Sreyas-Sreelal/samp-ai-chatbot/raw/master/pics/pic2.png?raw=true)
![[Image: pic3.png?raw=true]](https://github.com/Sreyas-Sreelal/samp-ai-chatbot/raw/master/pics/pic3.png?raw=true)
Repository
https://github.com/Sreyas-Sreelal/samp-ai-chatbot
|
|
|
matheval |
Posted by: SyS - 2019-04-14, 07:19 AM - Forum: Libraries
- Replies (1)
|
 |
matheval
This is a simple library for evaluating mathematical expressions given as string literals.Currently supported operators are:
- - addition?
- - - subtraction?
- ^ - exponential?
- / - division?
- * - product
If you have any issues or improvements to be made in this code just open an issue or pull request
Installation
If you are using sampctl just use
sampctl package install Sreyas-Sreelal/matheval
Otherwise just clone the repository
git clone https://www.github.com/sreyas-sreelal/matheval.git
and add matheval.inc to your pawno/includes folder
Usage
There is only one function
MathEval(expression[])
parameters
- expression[] - mathmatical expression in string literal
returns
- NaN if failed
- if success,value in floating point
For example :
PHP Code: #include<matheval>
main(){
? ?printf("(1)^(32/3)-1 = %f",MathEval("(1)^(32/3)-1"));
}
Testing
To run the tests:
sampctl package run
Dependencies
Repository
https://github.com/Sreyas-Sreelal/matheval
|
|
|
|