Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,574
» Latest member: labelsuae
» Forum threads: 2,326
» Forum posts: 12,249

Full Statistics

Online Users
There are currently 278 online users.
» 0 Member(s) | 276 Guest(s)
Bing, Google

Latest Threads
Customize Your Labels Wit...
Forum: General Discussions
Last Post: labelsuae
1 hour ago
» Replies: 0
» Views: 2
The apparel powerhouse ai...
Forum: General Discussions
Last Post: trueknitsapparel
2 hours ago
» Replies: 0
» Views: 6
Como usar Actor no pawno?
Forum: Portuguese/Portugu?s
Last Post: cristtianocastro
2025-09-30, 09:51 PM
» Replies: 0
» Views: 38
GetPlayerCameraTargetPlay...
Forum: Support
Last Post: Samp Nova
2025-09-28, 05:35 PM
» Replies: 0
» Views: 94
Project: Country Side (Bo...
Forum: Advertisements
Last Post: DevonH
2025-09-25, 04:41 AM
» Replies: 0
» Views: 169
press enter instead of /e...
Forum: Pawn Scripting
Last Post: phanchikiet060
2025-09-24, 12:31 AM
» Replies: 3
» Views: 332
removing server from the ...
Forum: Support
Last Post: edgy
2025-09-22, 04:32 PM
» Replies: 1
» Views: 229
United Gaming Life Rolepl...
Forum: Advertisements
Last Post: Cruncher
2025-09-17, 06:18 PM
» Replies: 0
» Views: 331
Adding new vehicles and s...
Forum: Support
Last Post: __.A.__
2025-09-15, 02:52 AM
» Replies: 2
» Views: 554
How to create a custom SA...
Forum: Support
Last Post: HELLHOUND
2025-09-15, 12:12 AM
» Replies: 1
» Views: 1,161

 
  ?Qu? opinan sobre el triste cierre defintiivo de Samphub?
Posted by: Glavez - 2019-04-13, 11:35 PM - Forum: Spanish/Espa?ol - Replies (20)

[Image: vJ57Qmn.png]


  Sobre el lenguaje de programaci?n...
Posted by: Glavez - 2019-04-13, 11:13 PM - Forum: Spanish/Espa?ol - Replies (18)

?Seguira siendo pawno el lenguaje o incluiran otro nuevo?


  Quienes m?s abrir?n su servidor en esta nueva plataforma?
Posted by: G0NZ4L0 - 2019-04-13, 11:08 PM - Forum: Discusi?n GTA SA Multijugador - Replies (64)

La verdad es que yo si lo har? , ahora s? me motivo a hacerlo.


  Balkan
Posted by: Wolf - 2019-04-13, 11:06 PM - Forum: Ex-Yu - Replies (176)

Chat za balkance





Ja: Hrvat


  TextDraw Streamer* - No more textdraw limits!
Posted by: kristo - 2019-04-13, 11:05 PM - Forum: Libraries - Replies (3)

TextDraw Streamer* - No more textdraw limits!



[Image: sampctl-samp--td--streamer-2f2f2f.svg?st...-the-badge]



This library removes the limits on how many textdraws can be created at the same time (2048 global and 256 per-player textdraws as of 0.3.7 and 0.3.DL). The library works by only creating the textdraws when they are visible for anyone. This is a rewrite of the PlayerTextDrawStreamer include, originally created by theYiin and later maintained by me. Some benefits over the old include:


  • Support for global textdraws.

  • No limits at all - the old include used static arrays meaning that the limits were still there, they were just higher. This library uses PawnPlus for dynamic containers and dynamically allocated strings, meaning that

  • Smaller footprint on the binary size - Again, static arrays are replaced with dynamic memory, the old include increased the binary size by several megabytes and also increased the compilation time drastically, compared to this the footprint of this library is almost non-existent.


* - Technically, this library does not do any streaming. However, in the SA-MP community, the name ?streamer? is often associated with something that removes hardcoded limits from something, therefore this name is used to help people find the library.



Installation



Simply install to your project:



Code:
sampctl package install kristoisberg/samp-td-streamer



To use the streamer for global textdraws, include the following file:



PHP Code:
#include <td-streamer-global> 



To use the streamer for per-player textdraws, include the following file:



PHP Code:
#include <td-streamer-player> 



If you wish to use it for both, you can either include both of the previous files or simply include:



PHP Code:
#include <td-streamer> 



Notes: This library must be the first one to hook any textdraw-related functions, otherwise a compile time error will be thrown. Neither should any textdraw-related functions or callbacks be used before the inclusion of this library. If YSF or SKY are used, they must be included before this library.



Usage



The include is completely plug & play, after being installed properly it should automatically do its job.



Functions



The following functions are either modified or added by this library:



td-streamer-global.inc



PHP Code:
Text:TextDrawCreate(Float:xFloat:y, const text[]);

Text:TextDrawCreate_s(Float:xFloat:yString:text);

IsValidTextDraw(Text:text);

TextDrawDestroy(Text:text);

TextDrawShowForPlayer(playeridText:text);

TextDrawHideForPlayer(playeridText:text);

TextDrawShowForAll(Text:text);

TextDrawHideForAll(Text:text);

IsTextDrawVisibleForPlayer(playeridText:text);

TextDrawSetString(Text:text, const string[]);

TextDrawGetString(Text:textstring[], len sizeof(string));

TextDrawSetString_s(Text:textString:string);

String:TextDrawGetString_s(Text:text);

TextDrawSetPos(Text:textFloat:xFloat:y); // TextDrawSetPosition also works if SKY is included

TextDrawGetPos(Text:text, &Float:x, &Float:y);

TextDrawLetterSize(Text:textFloat:xFloat:y);

TextDrawGetLetterSize(Text:text, &Float:x, &Float:y);

TextDrawTextSize(Text:textFloat:xFloat:y);

TextDrawGetTextSize(Text:text, &Float:x, &Float:y);

TextDrawColor(Text:textcolor);

TextDrawGetColor(Text:text);

TextDrawBoxColor(Text:textcolor);

TextDrawGetBoxColor(Text:text);

TextDrawBackgroundColor(Text:textcolor);

TextDrawGetBackgroundColor(Text:text);

TextDrawSetShadow(Text:textsize);

TextDrawGetShadow(Text:text);

TextDrawSetOutline(Text:textsize);

TextDrawGetOutline(Text:text);

TextDrawFont(Text:textfont);

TextDrawGetFont(Text:text);

TextDrawUseBox(Text:text, use);

TextDrawIsBox(Text:text);

TextDrawSetProportional(Text:textset);

TextDrawIsProportional(Text:text);

TextDrawSetSelectable(Text:textset);

TextDrawIsSelectable(Text:text);

TextDrawAlignment(Text:textalignment);

TextDrawGetAlignment(Text:text);

TextDrawSetPreviewModel(Text:textmodel);

TextDrawGetPreviewModel(Text:text);

TextDrawSetPreviewRot(Text:textFloat:xFloat:yFloat:zFloat:zoom 1.0);

TextDrawGetPreviewRot(Text:text, &Float:x, &Float:y, &Float:z, &Float:zoom);

TextDrawSetPreviewVehCol(Text:textcolor1color2);

TextDrawGetPreviewVehCol(Text:text, &color1, &color2);

TextDrawSetExtraID(Text:textextra1extra2 INVALID_TEXTDRAW_EXTRA_ID);

TextDrawGetExtraID(Text:text, &extra1, &extra2 INVALID_TEXTDRAW_EXTRA_ID); 



td-streamer-player.inc



PHP Code:
PlayerText:CreatePlayerTextDraw(playeridFloat:xFloat:y, const text[]);

PlayerText:CreatePlayerTextDraw_s(playeridFloat:xFloat:yString:text);

PlayerTextDrawDestroy(playeridPlayerText:text);

PlayerTextDrawShow(playeridPlayerText:text);

PlayerTextDrawHide(playeridPlayerText:text);

IsPlayerTextDrawVisible(playeridPlayerText:text);

PlayerTextDrawSetString(playeridPlayerText:text, const string[]);

PlayerTextDrawGetString(playeridPlayerText:textstring[], len sizeof(string));

PlayerTextDrawSetString_s(playeridPlayerText:textString:string);

String:PlayerTextDrawGetString_s(playeridPlayerText:text);

PlayerTextDrawSetPos(playeridPlayerText:textFloat:xFloat:y); // PlayerTextDrawSetPosition also works if SKY is included

PlayerTextDrawGetPos(playeridPlayerText:text, &Float:x, &Float:y);

PlayerTextDrawLetterSize(playeridPlayerText:textFloat:xFloat:y);

PlayerTextDrawGetLetterSize(playeridPlayerText:text, &Float:x, &Float:y);

PlayerTextDrawTextSize(playeridPlayerText:textFloat:xFloat:y);

PlayerTextDrawGetTextSize(playeridPlayerText:text, &Float:x, &Float:y);

PlayerTextDrawColor(playeridPlayerText:textcolor);

PlayerTextDrawGetColor(playeridPlayerText:text);

PlayerTextDrawBoxColor(playeridPlayerText:textcolor);

PlayerTextDrawGetBoxColor(playeridPlayerText:text);

PlayerTextDrawBackgroundColor(playeridPlayerText:textcolor);

PlayerTextDrawGetBackgroundColor(playeridPlayerText:text);

PlayerTextDrawSetShadow(playeridPlayerText:textsize);

PlayerTextDrawGetShadow(playeridPlayerText:text);

PlayerTextDrawSetOutline(playeridPlayerText:textsize);

PlayerTextDrawGetOutline(playeridPlayerText:text);

PlayerTextDrawFont(playeridPlayerText:textfont);

PlayerTextDrawGetFont(playeridPlayerText:text);

PlayerTextDrawUseBox(playeridPlayerText:text, use);

PlayerTextDrawIsBox(playeridPlayerText:text);

PlayerTextDrawSetProportional(playeridPlayerText:textset);

PlayerTextDrawIsProportional(playeridPlayerText:text);

PlayerTextDrawSetSelectable(playeridPlayerText:textset);

PlayerTextDrawIsSelectable(playeridPlayerText:text);

PlayerTextDrawAlignment(playeridPlayerText:textalignment);

PlayerTextDrawGetAlignment(playeridPlayerText:text);

PlayerTextDrawSetPreviewModel(playeridPlayerText:textmodel);

PlayerTextDrawGetPreviewModel(playeridPlayerText:text);

PlayerTextDrawSetPreviewRot(playeridPlayerText:textFloat:xFloat:yFloat:zFloat:zoom 1.0);

PlayerTextDrawGetPreviewRot(playeridPlayerText:text, &Float:x, &Float:y, &Float:z, &Float:zoom);

PlayerTextDrawSetPreviewVehCol(playeridPlayerText:textcolor1color2);

PlayerTextDrawGetPreviewVehCol(playeridPlayerText:text, &color1, &color2);

PlayerTextDrawSetExtraID(playeridPlayerText:textextra1extra2 INVALID_TEXTDRAW_EXTRA_ID);

PlayerTextDrawGetExtraID(playeridPlayerText:text, &extra1, &extra2 INVALID_TEXTDRAW_EXTRA_ID); 



Testing



The test.pwn file contains automated tests and a test script using MSelect by Open-GTO. To test, simply run the package:



Code:
sampctl package run


  Suggestion: forums
Posted by: klays - 2019-04-13, 11:05 PM - Forum: Chat - Replies (1)

separate the sections referring to programming (plugins/includes, questions, etc.)


  Are you as anxious as I am?
Posted by: G0NZ4L0 - 2019-04-13, 10:58 PM - Forum: General Discussions - Replies (10)

Uff, the truth is I am very anxious about the new mod that you are developing because it was time for something new, I dare to say that I will be one of the first to open a Spanish-speaking server on this new platform :)



If my English is bad please excuse me because I speak in the Spanish language and because the Google translator has its problems sometimes hahaha, I am anxious to get the new platform.


  ?Que servidores crees que se pasaran a esta plataforma?
Posted by: Tio Verde - 2019-04-13, 10:54 PM - Forum: Discusi?n GTA SA Multijugador - Replies (55)

Yo creo que SampHub vendr??a esta plataforma as? evita los ataques? de Sergioo



?Que opinan?


  Algemene Discussies
Posted by: dignity - 2019-04-13, 10:53 PM - Forum: Dutch/Nederlands - Replies (40)

hoi leuk je hier te zien


  ?que piensas/esperas del proyecto?
Posted by: JFelix - 2019-04-13, 10:50 PM - Forum: Spanish/Espa?ol - Replies (24)

Yo digo que esto cambiara mucho sobre la comunidad multiplayer de gta sa, habra constantes actualizaciones, cosa que kalcor no da, y la comunidad toxica sera eliminada, no completamente pero si gran parte, ademas de que tendremos un staff activo y developers que hacen esfuerzo en mejorar la plataforma