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

Username
  

Password
  





Search Forums



(Advanced Search)

Forum Statistics
» Members: 5,693
» Latest member: ewitson555
» Forum threads: 2,120
» Forum posts: 11,902

Full Statistics

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

Latest Threads
What is the role of a lib...
Forum: General Discussions
Last Post: ewitson555
9 hours ago
» Replies: 0
» Views: 5
Explore Michael A Durney'...
Forum: Chat
Last Post: michaeladurney11
2024-04-23, 11:57 PM
» Replies: 0
» Views: 21
Favorite Movies!!
Forum: Chat
Last Post: porpercris
2024-04-23, 08:40 PM
» Replies: 2
» Views: 3,260
Need Gamemode
Forum: Chat
Last Post: ididoso228
2024-04-23, 07:23 PM
» Replies: 5
» Views: 1,063
United States Roleplay [L...
Forum: Advertisements
Last Post: kayla
2024-04-22, 11:24 PM
» Replies: 0
» Views: 27
[RP] Life in San Andreas
Forum: Advertisements
Last Post: Sauce
2024-04-22, 02:39 PM
» Replies: 0
» Views: 10
Ajuda com um relatório so...
Forum: Portuguese/Portugu?s
Last Post: didawson1990
2024-04-20, 09:12 PM
» Replies: 10
» Views: 5,252
OnPlayerVehicleTakeDamage...
Forum: Questions and Suggestions
Last Post: N0FeaR
2024-04-20, 10:21 AM
» Replies: 1
» Views: 361
Getting back to pawn scri...
Forum: Questions and Suggestions
Last Post: N0FeaR
2024-04-20, 10:20 AM
» Replies: 1
» Views: 95
goto label
Forum: Pawn Scripting
Last Post: porpercris
2024-04-19, 07:08 PM
» Replies: 1
» Views: 547

 
  News open.mp Russia
Posted by: Nikita228 - 2019-04-16, 01:36 PM - Forum: Russian/??????? - Replies (1)

Russian-speaking community, we will publish news related to open.mp



Link - https://vk.com/openmpnews


  Screen Colour Fader
Posted by: kristo - 2019-04-16, 12:12 PM - Forum: Libraries - No Replies

SA-MP Screen Colour Fader



[Image: sampctl-samp--screen--colour--fader-2f2f...-the-badge]



This library lets you add colour filters to players? screens and fade between them. Until today I was using a modified version of Joe Staff?s fader include, but since it was using a separate argument for each part of an RGBA colour and the original was outdated in general, I decided to create my own. Here?s what I came up with.



Installation



Simply install to your project:



Code:
sampctl package install kristoisberg/samp-screen-colour-fader



Include in your code and begin using the library:



PHP Code:
#include <screen-colour-fader> 



Functions



PHP Code:
native SetPlayerScreenColour(playeridcolour); 



Will set the player?s screen colour to the specified colour. Can be used during a fade, but the fade will continue after the current step is finished. Returns 1 if the specified player is connected or 0 if not.



PHP Code:
native GetPlayerScreenColour(playerid); 



Can be used during a fade. Returns the current colour of the player?s screen if the player is connected or 0x00000000 if not.



PHP Code:
native FadePlayerScreenColour(playeridcolourtimesteps); 



Fades the player?s screen from the current colour to the colour specified in the function. time specifies the duration of the fade and steps specifies the amount of steps made during the fade. Returns 1 if the specified player is connected and the values of time and steps are valid or 0 if not.



PHP Code:
native StopPlayerScreenColourFade(playerid); 



Stops the ongoing fade. The colour of the player?s screen will remain as it is at the time of the function call. Returns 1 if the specified player is connected and has an ongoing fade or 0 if not.



Callbacks



PHP Code:
forward public OnScreenColourFadeComplete(playerid); 



Notes


  • Both for the functions and the callback, the American spelling (color instead of colour) is also supported.


Example



The following piece of code (also available in test.pwn) fades the player?s screen to red and back to transparent five times.



PHP Code:
new bool:reversecounter;



public 
OnPlayerConnect(playerid) {

? ?
SetPlayerScreenColour(playerid0x00000000);

? ?
FadePlayerScreenColour(playerid0xFF0000AA100025);

? ?return 
1;

}





public 
OnScreenColourFadeComplete(playerid) {

? ?if (
流⺞힫 == 10) {

? ? ? ?return 
1;

? ?}



? ?
FadePlayerScreenColour(playeridreverse 0xFF0000AA 0x00000000100050);



? ?
reverse = !reverse;



? ?return 
1;





Testing



To test, simply run the package:



Code:
sampctl package run



And connect to localhost:7777 to test.


  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 (4)

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 (16)

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