| Welcome, Guest |
You have to register before you can post on our site.
|
| Online Users |
There are currently 292 online users. » 1 Member(s) | 288 Guest(s) Bing, Google, Applebot, GrandeLib
|
| Latest Threads |
Real-time pathfinder, opt...
Forum: Pawn Scripting
Last Post: hiago.sucesso.hs
6 hours ago
» Replies: 1
» Views: 152
|
Is there a WebSocket plug...
Forum: General Discussions
Last Post: hiago.sucesso.hs
6 hours ago
» Replies: 0
» Views: 10
|
What would you start?
Forum: Life
Last Post: HELLHOUND
2025-12-14, 10:32 PM
» Replies: 5
» Views: 10,300
|
After School Roleplay - G...
Forum: Advertisements
Last Post: cosminupgaming
2025-12-14, 02:06 PM
» Replies: 3
» Views: 410
|
PROJECT: LOS ANGELES — TH...
Forum: Advertisements
Last Post: cosminupgaming
2025-12-13, 07:16 PM
» Replies: 4
» Views: 761
|
LCSHosting.eu - Free SA-M...
Forum: Tech
Last Post: LCSLaces
2025-12-12, 04:57 PM
» Replies: 0
» Views: 66
|
Las Venturas Gang Wars - ...
Forum: Advertisements
Last Post: lvgwgta
2025-12-12, 03:29 PM
» Replies: 0
» Views: 50
|
Infamous Roleplay
Forum: Advertisements
Last Post: JakeFalcone
2025-12-11, 11:34 PM
» Replies: 0
» Views: 55
|
The server didn't respond...
Forum: Support
Last Post: HELLHOUND
2025-12-11, 01:17 PM
» Replies: 1
» Views: 197
|
Grand Gang War (GGW)
Forum: Advertisements
Last Post: piroballu
2025-12-09, 01:16 PM
» Replies: 1
» Views: 259
|
|
|
| [MAP] Desert Airport |
|
Posted by: iChiwi_. - 2019-04-17, 11:28 AM - Forum: Filterscripts
- No Replies
|
 |
Abandoned Airport, which?had been destroyed due to the wars that happened recently between the?countries.
Every country trying to capture this place to have the most powerful vehicles.
Download:-
https://pastebin.com/W0VAbtc9?( will retexture it soon, so check the topic regularly )
Credits:-
iChiwi_.
|
|
|
|
| Discord SACNR Monitor Bot |
|
Posted by: Bork - 2019-04-17, 10:22 AM - Forum: Tech
- Replies (14)
|
 |
I wrote a discord bot that will query information from the SACNR Monitor based on a IP and port you provide. It currently does not support URL's with an A record for an IP but I will eventually bring that out.
The invite link can be found here:?https://discordapp.com/api/oauth2/authorize?client_id=565207337883795487&permissions=8&scope=bot
To use the bot, all you need to type is:
Code: !sacnr ip port(default 7777)
You'll get information like this thrown out:
![[Image: EQGraNx.png]](https://i.imgur.com/EQGraNx.png)
For those who are wondering where it's being hosted and what it was written in, dakyskye?is hosting the bot and it was written in C#.
Have fun!
|
|
|
|
| [Include] pawn-array-view: non-owning spans for multi-dimensional pawn arrays |
|
Posted by: Yashas - 2019-04-17, 05:00 AM - Forum: Plugins
- No Replies
|
 |
pawn-array-view
pawn-array-view is an efficient C library that abstracts the complex memory layout of multi-dimensional pawn arrays and provides an intuitive C/ array-like interface for dealing with them. The name suggests that the library only allows read-only access to the arrays but that's not true; you can access and modify the arrays. Any decent C compiler will be able to optimize off all access and modifications to the arrays into simple pointer arithmetic.
Defects (Help Wanted)
LICM optimizations aren't pushing loop invariant subexpressions out of the loop because of aliased pointers. I haven't figured out how to correctly place restrict qualifiers which aren't ignored.
Code: int main() {
pawn::array_view<int, 3> array((cell*)0x10000);
for(int i = 0; i < 100; i) {
for(int j = 0; j < 100; j) {
for(int k = 0; k < 128; k) {
array[i][j][k] = 10;
}
}
}
return 0;
}
The compiler does not move the array[i][j] calculations outside the loop. There is a valid reason to not move them since modifying an element could modify something which would require recalculating the indexes. This is useful only when indirection tables are being modified. The common case is data being modified but not the indirection table. In this situation, moving the calculations out of the loop improves performance.
There are more consequences. The compiler can also vectorize the loop if it manages to pull the subexpression out of the loop. The failure to move the subexpression outside the loop prevents a ton of optimizations.
Note that the optimizations happen when the array is only being read. The problem is for modifications only.
Plans
If the size of the arrays are known at compile-time, a better interface can be provided. I have plans on providing full-fledged container like support for arrays where the dimensions are available at compile time.
There is a project going on in the develop branch which has working but inefficient code for dealing with known dimensions at run-time.
I plan on renaming array_view to span. This include was initially providing a view but then the ability to mutate was added but the name wasn't changed. It's a very misleading name now.
Links
|
|
|
|
| old trailer |
|
Posted by: Atom - 2019-04-17, 03:21 AM - Forum: Videos and Screenshots
- No Replies
|
 |
Hi all.
This is the trailer I made for one of my old projects, I had posted it in the sa-mp forum but I was erased and banned because of the youtube rule.
And I wanted to put it here because in the past it did not last long until they deleted the post xD
[Video: https://www.youtube.com/watch?v=VKkTnhBWTf4]
[Video: https://youtu.be/eyxwyUoZPOA]
The server was about a world where there was a world crisis where only the most money was kept, the media were extorted to show a false reality where everything was beautiful.
That's the message I wanted to convey in the second anchored video.
|
|
|
|
| pawn-plus-mysql: PawnPlus extensions and helpers for the MySQL plugin |
|
Posted by: Graber - 2019-04-17, 01:38 AM - Forum: Libraries
- Replies (8)
|
 |
pawn-plus-mysql
![[Image: sampctl-pawn--async--mysql-2f2f2f.svg?st...-the-badge]](https://shields.southcla.ws/badge/sampctl-pawn--async--mysql-2f2f2f.svg?style=for-the-badge)
PawnPlus extensions and helpers for the MySQL plugin
Installation
Simply install to your project:
Code: sampctl package install AGraber/pawn-plus-mysql
Include in your code and begin using the library:
It is recommended that you set a PawnPlus version explicitely on your pawn.json (preferibly the latest) to avoid always downloading the latest one.
If you don?t use sampctl, just download the pp-mysql.inc include and drop it to your includes/ folder, and then download the PawnPlus plugin and include from here.
While you?re on it and if you don?t use PawnPlus yet, you should check it out!
Usage
All existing mysql_[t/p]query now have a variant that accepts PawnPlus strings, ending with _s (for example, mysql_tquery_s).
In addition, a new member arrives into the family of these natives: mysql_aquery[_s], which returns a task that will be set as completed when the query completes successfully, or fault when there?s an error during its execution.
Note that mysql_aquery[_s] will piggyback on mysql_tquery by default. You can override this and use mysql_tquery by setting the parallel parameter at the end to true, or explicitly change this default value by defining MYSQL_ASYNC_DEFAULT_PARALLEL to you desired value.
Examples
Using PawnPlus strings on natives
PHP Code: public OnPlayerTookAllCandies(playerid)
{
? ?mysql_tquery_s(DatabaseHandle, @("UPDATE player SET took_candies = UNIX_TIMESTAMP() WHERE id = ") % GetPlayerDBID(playerid));
}
Task-based asynchronous queries:
PHP Code: LoadPlayerData(playerid)
{
? ?await mysql_aquery_s(DatabaseHandle, @("SELECT * FROM player WHERE id = ") % GetPlayerDBID(playerid), .parallel = false);
? ?// Cache functions will be available after this
? ?cache_get_value_name_float(0, "health", PlayerHealth[playerid]);
? ?// ...
}
|
|
|
|
| Update System [MySQL] |
|
Posted by: solstice - 2019-04-16, 11:34 PM - Forum: Filterscripts
- No Replies
|
 |
Hey there, I decided to make my second release here and this time a filterscript (again, this is reuploaded from the SA:MP forums).
This is a filterscript I made for server owners / developers to simply add updates in-game, without having to make edits on the script multiple times.
To use it, you must clone the repository:
Commands:
-?/addupdate
-?/removeupdate
-?/updates
Credits:
Y_Less - sscanf
BlueG / maddinat0r - MySQL
Emmet_ -?easyDialog
Zeex - zcmd
Here's a list of screenshots if you want to see how it looks:
https://imgur.com/a/fdIbGIs
|
|
|
|
| Image2Textdraw - Image to textdraw converter! -FINAL VERSION |
|
Posted by: Rafael_Rosse - 2019-04-16, 11:05 PM - Forum: Filterscripts
- Replies (9)
|
 |
What is it ?
With this tool you can convert images to textdraws!
It is an .exe application that converts every pixel of a image
to a textdraw and it generates an errorless filterscript!
Changelog:
Code: BETA:
1.1:
*Checkbox added to enable/disable the background removal
1.2:
*Code optimised at the checkbox.
*The threads are now "sleeping" longer, THIS MEANS THAT THE APPLICATION WILL RENDER SLOWER, unfortunally i had to do this because i noticed it the loop was going too fast that it will randomly skip pixels :S
1.3:
*Remove transparency checkbox will be disabled when rendering
*The previewbox has been removed and the location-select part will now show your image instead of a dot
*Improved location selector (better accuracy)
*System is now using a different save method
*The system will now compare every 2-4 pixels with echothers color, and combines them if they are identical
1.3b:
*Icon has been removed to fix the crashes at Windows XP
1.4:
*New method of detecting transparency (A LOT more accurate)
*Menubar added
*Checkbox of the transparency removal has now been moved to the menubar
*A possible crash has been fixed after you closed the app
1.5:*New color detection to reduce textdraw sizes!
*Quality option has been added (adding more delay to give the ram more time to store the pixels avoiding random transparant pixels).
RC2:
*New image for locating positions (on request)
Final version:
*Standard transparency value adjusted
*Help button added (including information about how to avoid "transparant" pixels).
*You can now turn multithreading off (for slower/single core processors)
*Load/Render buttons added in the menu
*Some major speed improvements have been added
*You can now change the background image of the previewbox in order to select the location with your own screenshots (On request of asdfgh98).
NEW!Result of the pixel-reduce method:
![[Image: qTfLS7W140E.jpg]](https://pp.userapi.com/c855520/v855520373/2515e/qTfLS7W140E.jpg)
The ammount of textdraws on this image above has been reduced from 495 to 245!!!
Version 1.5 reduces this example to just 74 textdraws!!!!
Important notes:
1. Please note that the SA-MP server has a 2048 textdraw limit! This means you can only convert small images arround 64x64 (depends on how much transparant pixels and nearby pixels with the same color there are to combine).
2. 1 pixel will be showed larger as the original due to the 640x480 scale !
3. The pixelcount on the details is INCLUDING transparant pixels, transparant pixels will not be made as textdraw though.
How to use it ?
1. resize your logo so it is arround 45x45 pixels (can be smaller or maybe even larger, it also depens on the ammount of transparant pixels you have).
2. Run the tool and click on Load Image, select now your resized logo/image.
3. Click on "Render image", and select the output where you want to save the pawn file.
4. Wait until its finished and then open the filterscript with pawn and hit F5 (compile it).
5. Your filterscript is ready to go!
License
*Do NOT re-release it, clame it as your own or mirror it!
*You are allowed to use PARTS of the code for yourself, but atleast put some credits in the comments to me!
Donwlad
|
|
|
|
| Why the competition now? |
|
Posted by: AkiraR - 2019-04-16, 10:11 PM - Forum: General Discussions
- Replies (11)
|
 |
For those who don't know, Zhao made a thread regarding an Official SAMP Discord. Why is this now becoming a thing while we've had the other for ages? Also secondly, if they are going to be opening this Discord in separation for against Crayder's, what is their goal?
edit: ya'll give a ____ if samp urls are dropped or are we not playin that game either?
AkiraR Wrote:"That is NOT the point. If you look at his quote and my post, it was retaining why is the team now constructing the Discord server? It's pretty obvious the prior "Unofficial SAMP Discord" was ran by the forum users. We get that but that other Discord is/was the primary Discord the forum users here used. If they wanted to establish their own w/o moderation/mutiny why not do it prior?
Plus, what does this in return come to us about other significant/public changes to be addressed? Discord is a massive communication hub. Therefore, is an announcement aside from Zhao, unless stickied posted? To be further included?"
Now they be deleting posts...
|
|
|
|
|