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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 7,247
» Latest member: JamesT
» Forum threads: 2,378
» Forum posts: 12,290

Full Statistics

Online Users
There are currently 351 online users.
» 0 Member(s) | 348 Guest(s)
Bing, Google, Yandex

Latest Threads
Second Generation Rolepla...
Forum: Advertisements
Last Post: JamesT
48 minutes ago
» Replies: 0
» Views: 6
How to compile pawn scrip...
Forum: Tech
Last Post: reynoldschicago
2 hours ago
» Replies: 1
» Views: 738
Servidor RPG profissões
Forum: Advertisements
Last Post: tcharlesmeurer
11 hours ago
» Replies: 0
» Views: 7
Servidor novo RPG profiss...
Forum: Chat
Last Post: tcharlesmeurer
11 hours ago
» Replies: 0
» Views: 9
EVO Anti-Cheat
Forum: Libraries
Last Post: Eduardo_AC
Yesterday, 11:05 PM
» Replies: 2
» Views: 23
Developer for Hire – Syst...
Forum: Pawn Scripting
Last Post: ejtamovic
2025-07-04, 08:35 AM
» Replies: 0
» Views: 40
Liberty City map
Forum: Pawn Scripting
Last Post: ziyadprogamer
2025-06-28, 04:55 PM
» Replies: 2
» Views: 2,168
GameText styles in open.m...
Forum: Pawn Scripting
Last Post: Miki
2025-06-28, 01:25 PM
» Replies: 1
» Views: 54
Script[gamemodes/gamemode...
Forum: Pawn Scripting
Last Post: Miki
2025-06-27, 05:08 PM
» Replies: 1
» Views: 433
Want to edit my profile n...
Forum: Chat
Last Post: Hera.
2025-06-26, 08:41 PM
» Replies: 1
» Views: 582

 
  PAWN Colour Manipulation
Posted by: kristo - 2019-04-16, 12:09 PM - Forum: Libraries - Replies (3)

PAWN Colour Manipulation



[Image: sampctl-pawn--colour--manipulation-2f2f2...-the-badge]



This library provides a number of easy-to-use colour manipulation functions for PAWN.



Installation



Simply install to your project:



Code:
sampctl package install kristoisberg/pawn-colour-manipulation



Include in your code and begin using the library:



PHP Code:
#include <colour-manipulation> 



Testing



To test, simply run the package:



Code:
sampctl package run



There is also a separate test script (samp-grayscale-bitmap) that unfortunately doesn?t work yet due to a bug in samp-bitmapper.



Functions



PHP Code:
GetColourComponents(colour, &Float:r, &Float:g, &Float:b, &Float:1.0ColourMode:mode COLOUR_MODE_RGBA



Extracts the RGB(A) components from a colour code.



PHP Code:
Float:GetColourComponent(colourColourComponent:componentColourMode:mode COLOUR_MODE_RGBA



Extracts an individual colour component from a colour code and returns it.



PHP Code:
SetColourComponent(colourColourComponent:componentFloat:valueColourMode:mode COLOUR_MODE_RGBA



Modifies an individual component of an existing colour and returns the new colour.



PHP Code:
GetColourCode(Float:rFloat:gFloat:bFloat:1.0ColourMode:mode COLOUR_MODE_RGBA



Creates a colour code from RGB(A) components.



PHP Code:
ConvertColour(colourColourMode:fromColourMode:toFloat:alpha 1.0



Converts a colour from one colour mode to another. Alpha should be specified when converting from RGB, otherwise 0xFF (fully non-transparent) is used.



PHP Code:
InterpolateColours(colour1colour2Float:amountColourMode:mode COLOUR_MODE_RGBA



Interpolates two colours. amount must be in the range 0.0 - 1.0. The larger amount is, the closer the returned colour is to colour2.



PHP Code:
Float:GetColourBrightness(colourColourMode:mode COLOUR_MODE_RGBA



Returns the brightness of a colour.



PHP Code:
DarkenColour(colourFloat:amountColourMode:mode COLOUR_MODE_RGBA



Darkens a colour by interpolating it with the black colour.



PHP Code:
LightenColour(colourFloat:amountColourMode:mode COLOUR_MODE_RGBA



Lightens a colour by interpolating it with the white colour.



PHP Code:
GrayscaleColour(colourColourMode:mode COLOUR_MODE_RGBA



Returns the grayscale equivalent of a colour.



PHP Code:
Float:GetColourComponentFractValue(value



Converts a binary colour component value to a fractional value.



PHP Code:
GetColourComponentBinaryValue(Float:value



Converts a fractional colour component value to a binary value.



PHP Code:
Float:AddColourComponentGammaCor(Float:value



Adds sRGB gamma correction to a colour component.



PHP Code:
Float:RemoveColourComponentGammaCor(Float:value



Removes the sRGB gamma correction from a colour component.



Definitions



Colour modes



COLOUR_MODE_RGBA - The most common colour format in SA-MP: used by SendClientMessage, textdraws, etc.



COLOUR_MODE_ARGB- Colour format used by SetObjectMaterial, SetObjectMaterialText and SetPlayerAttachedObject.



COLOUR_MODE_RGB - Colour format used by embedded colours, probably the most common colour format outside of SA-MP, most notably in webpages.



Colour components



COLOUR_COMPONENT_R - Red



COLOUR_COMPONENT_G - Green



COLOUR_COMPONENT_B - Blue



COLOUR_COMPONENT_A - Alpha



Notes



Both British and American spellings (color/colour, gray/grey) are supported for everything noted above.


  Send your burger pics
Posted by: kristo - 2019-04-16, 12:06 PM - Forum: Chat - Replies (11)

.


  Web Development
Posted by: Bruce - 2019-04-16, 10:18 AM - Forum: Tech - Replies (3)

So, Hello I am Bruce (obviously).

I am trying to get myself into different courses around to start a new thing for myself. Web development.?

I kinda want to start with Front End Development and than move to Back End Development and than to more things.

I need your help with suggestions on how to start and if u got any useful links you can share.

I would be thankful to everyone who gives even a little bit of help.


  open.mp anticheat
Posted by: Reachless - 2019-04-16, 09:39 AM - Forum: Questions and Suggestions - Replies (15)

I believe it would be a great idea to take into consideration adding an?anticheat to the open.mp client. Aiming hacks are a huge issue currently and a lot of servers already adopted clientsided anticheats like whitetiger's or sampcac. In the beginning, I am sure that adding natives for small checks (like returning a list of injected modules into the gta_sa executable, or checking the md5 hash of a local file) would help us greatly.


  Code formatter (prettier)
Posted by: AmirSavand - 2019-04-16, 05:49 AM - Forum: Pawn Scripting - Replies (3)

Is there a way to automatically format scripts?


  Game: ?Qu? opinas acerca el usuario que coment? antes de usted?
Posted by: Savage - 2019-04-16, 05:11 AM - Forum: Offtopic - Replies (52)

As? es, como dice en el t?tulo, debes opinar acerca el usuario que comento antes de usted. Y como siempre, por favor, eviten los insultos.


Pues pienso que el creador del post es hermoso:). Ndeaah.


  Solucionar errores Directx 2.0 W10
Posted by: CVaZ - 2019-04-16, 04:12 AM - Forum: Mods - Replies (11)

?Hola!, hoy les vengo a compartir tres (3)?soluciones a errores muy frecuentes con el ENB series DirectX 2.0.

Primer error:

(No tengo SS para esto)

El primer error consiste en que al iniciar el gta_sa.exe/sa-mp, te va a salir una ventana diciendo: Gta_Sa necesita directx 9.0?

Me pase varias horas busc?ndole una soluci?n a esto, y encontr? una muy f?cil.?

Primero vamos a ingresar a esta pagina: https://www.microsoft.com/es-ES/download...aspx?id=35 (Pagina 100% segura, lo saque de la pagina de Microsoft)
[Image: i4P8oq2.png]

Le daremos a Descargar y se nos empezara a descargar un programa llamado:?dxwebsetup.exe

Cuando ya se haya instalado le damos doble click?
Le damos a: Acepto el contrato y Siguiente.
[Image: fXklX9D.png]

Ahora desmarcaremos la casilla de Bing (Bing es un buscador web de Microsoft)
[Image: l1M3v6W.png]

Y ya se proceder? a instalar solo, cuando termine esto, ya el problema estar?a solucionado.??

Segundo error:

?Espera no te vayas todav?a!?
El segundo error consiste en que no se abre el SA-MP,?da Crash.?

Esto es muy f?cil de solucionar.?

Abriremos la carpeta que nos dejo el DirectX 2.0, la cual tiene por nombre:? Fix Problems Win 10
[Image: C73Zwqv.png]

Despu?s de esto copiaremos estos 3 archivos a la carpeta ra?z de nuestro GTA.?
[Image: 3UjUAQo.png]

Ya estar? el segundo problema solucionado.?

Tercer error:
?Ya estas emocionado de poder jugar con este hermoso ENB? No te preocupes, ya falta poco.?

Lo ultimo que haremos sera apretar las teclas: Windows (Alado del ALT y del Ctrl) R (Las dos juntas)

Se nos abrir? una pesta?a abajo y le vamos a poner en el cuadro blanco: Regedit?

[Image: Ywdhh20.png]

Se nos abrir? una ventana llamada: Editor de Registro.?

Le daremos a:?HKEY_CURRENT_USER
? ? ? ? ? ? ? ? ? ? ?Software
? ? ? ? ? ? ? ? ? ? ?SAMP

?Ya?

Bueno prosigamos.?

A lado se nos abrir? una pesta?a y seleccionaremos el que dice: gta_sa_exe

Click derecho y en modificar.?

Nos aparecer? algo tal que as?:?
[Image: dx0Bsyk.png]

A donde dice \gta_sa.exe, lo cambiaremos por:?enb.exe
[Image: 32tOnoj.png]

Le daremos en Aceptar y cerramos directamente.?

Ahora ya esta todo solucionado, solo quedara darle click derecho y ejecutar como administrador a esto:?
[Image: 1G3uHiu.png]

?Felicidades, ahora te abrir??el SA-MP con el ENB!?
Que lo disfrutes.


  Albanian - sub-forum/Shqip - n?n-forumi
Posted by: hastlaking - 2019-04-16, 02:47 AM - Forum: Other - Replies (9)

Albanian / Shqip

Nj? n?n-forum i posaq?m p?r shqip?tar?t n? lidhje me modifikimin e loj?'s SA-MP & O:MP





> ?N? qoft? se d?shironi ky n?n-forum t? sh?ndrohet n? n?n-forum zyrtar tek burgershot.gg ju b?j apel t? b?ni kontribut t? shpeshta <





N? qoft? se, d?shironi t? b?ni postime dhe tju p?rgjigjeni postimeve shfryt?zoni etiketa "TAG/s" dhe/ose cita "quotes" p?r nevojat e juaj.



Etiketat:
  • P?rfshimet/Includes

  • Gamemodes/Gamemodes

  • Filterscripts/Filterscripts

  • Ndihm?/Help - lidhje me PAWN

  • Udh?zimet/Tutorials




N? qoft? se ju p?lqeu ndryshimi i n?n-forumit dhe jeni t? motivuar nga ky ndryshim dhe nj? her ju b?j apel q?ndroni aktiv dhe ?do her the motivuar.



P?rshendetje nga:

Hastlaking


  ?Qu? servidores en desarrollo te gustar?a ver por aqu??
Posted by: Bryzon - 2019-04-15, 11:55 PM - Forum: Discusi?n GTA SA Multijugador - Replies (18)

?Que servidores actualmente en desarrollo te gustar?a que estrenar?n la plataforma??

Esto es algo inyerintere ya que, adem?s de poder dar a conocer para algunos usuarios ese servidor que tanto esperas, puedes dar tu opini?n sobre los mismos.


  Involving the SA-MP DM Community - A return to tradition
Posted by: Darius - 2019-04-15, 11:40 PM - Forum: General Discussions - Replies (3)

Hello everyone,



First of all I'm ecstatic about this whole endeavour, especially when seeing some of the people involved (hey spacemud, long time no see)

and seeing things like " (this got found out because I was trying to involve the long ignored Russian community, thus bring back in people already split off)" on Y-Less' statement topic gives me hope that this will succeed.



A suggestion I have would be to extend an olive branch to the DM (Deathmatch) branch of SA-MP, this used to be a really key and critical part of the 'old' SA-MP (2006/2007 etc) with a heavily active 'Gangs' sub section on the forum and an 'Official' server list that consisted of large open-ended freeroam servers with competitive elements for this Gangs to compete against one another (Littlewhiteys, Las Venturas Playground, Partyserver, Randy's Arena Meltdown and the [XIII] server to name a few). But the official server list was removed, fragmenting the Gang 'scene' and this only got worse with the removal of the Gangs section on the SA-MP forums, it was now a lot harder for them to advertise and recruit members, as well as removing a small sub-section dedicated to organising tournaments and competitions. Furthermore, most of the updates in recent years have been seen by the DM community to be for the benefit of the 'Roleplay' community (e.g - custom objects such as handcuffs, reskins of cop skins) and has resulted in many in this community feeling ignored by those in charge, it was only after a concerted campaign by many in the DM community that 'lagcomp' was added, before that it was just going to be removed altogether).



What do I mean by extending an olive branch? Well, here are some ways to do that:

  • Bring back the 'Gangs' section

  • Include a sub-section on the 'Gangs' section for organising Competitions/tournaments

  • If an update will negatively impact or be controversial for the shooting/DM side of SA-MP, make it optionable.

  • Include an 'official' server list

  • Acknowledging the knowledge gaps - possibly consulting the DM side for assistance in known issues/ideas, don't just assume!


Finally, when I was typing this thread, I realised there is no 'suggestions' section. So there's a final suggestion! :P



P.S - Southclaws bring back Scavenge & Survive, disable pedslots used so I don't get banned



Y_Less you pull this off and I'll have a word with your boss to give you a raise