Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 626 online users. » 1 Member(s) | 622 Guest(s) Google, Bing, Yandex, BVZS
|
Latest Threads |
What is mebendazole used ...
Forum: Questions and Suggestions
Last Post: lucasmillerfeb2022
3 hours ago
» Replies: 0
» Views: 9
|
Rosalife Gamemode [openMP...
Forum: Gamemodes
Last Post: vactidylee
Yesterday, 04:17 AM
» Replies: 5
» Views: 4,547
|
White Screen
Forum: Support
Last Post: Phat202146_real
2024-11-21, 02:50 PM
» Replies: 0
» Views: 25
|
Offensive-Core: TDM
Forum: Gamemodes
Last Post: threezhang.cn
2024-11-21, 09:54 AM
» Replies: 5
» Views: 939
|
Outstanding Customer Serv...
Forum: Chat
Last Post: va6220902
2024-11-21, 07:52 AM
» Replies: 0
» Views: 32
|
New place
Forum: Life
Last Post: sjaardamilly
2024-11-21, 06:58 AM
» Replies: 0
» Views: 24
|
How Zhewitra Oral Jelly W...
Forum: General Discussions
Last Post: erctilenovus
2024-11-20, 08:39 AM
» Replies: 0
» Views: 31
|
Cenforce 100 Mg Medicine ...
Forum: Chat
Last Post: ezraallen45ea
2024-11-19, 10:00 AM
» Replies: 0
» Views: 38
|
I get error 021 using y_h...
Forum: Pawn Scripting
Last Post: daniscript18
2024-11-18, 11:34 PM
» Replies: 0
» Views: 46
|
What is the use of Wakler...
Forum: Other
Last Post: allencooper
2024-11-18, 10:37 AM
» Replies: 0
» Views: 30
|
|
|
Nederlandse muziek |
Posted by: Codeah - 2019-04-16, 02:14 PM - Forum: Dutch/Nederlands
- Replies (9)
|
|
Ik woon al een paar jaar in het buitenland, maar alle muziek die ik zie op YouTube Trending is echt pijnlijk om naar te luisteren.
Bestaat er nog goede Nederlandse muziek? Als dat zo is, post het dan hieronder.
|
|
|
Screen Colour Fader |
Posted by: kristo - 2019-04-16, 12:12 PM - Forum: Libraries
- No Replies
|
|
SA-MP Screen Colour Fader
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(playerid, colour);
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(playerid, colour, time, steps);
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:reverse, counter;
public OnPlayerConnect(playerid) {
? ?SetPlayerScreenColour(playerid, 0x00000000);
? ?FadePlayerScreenColour(playerid, 0xFF0000AA, 1000, 25);
? ?return 1;
}
public OnScreenColourFadeComplete(playerid) {
? ?if (流⺞ == 10) {
? ? ? ?return 1;
? ?}
? ?FadePlayerScreenColour(playerid, reverse ? 0xFF0000AA : 0x00000000, 1000, 50);
? ?reverse = !reverse;
? ?return 1;
}
Testing
To test, simply run the package:
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
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:
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:a = 1.0, ColourMode:mode = COLOUR_MODE_RGBA)
Extracts the RGB(A) components from a colour code.
PHP Code: Float:GetColourComponent(colour, ColourComponent:component, ColourMode:mode = COLOUR_MODE_RGBA)
Extracts an individual colour component from a colour code and returns it.
PHP Code: SetColourComponent(colour, ColourComponent:component, Float:value, ColourMode:mode = COLOUR_MODE_RGBA)
Modifies an individual component of an existing colour and returns the new colour.
PHP Code: GetColourCode(Float:r, Float:g, Float:b, Float:a = 1.0, ColourMode:mode = COLOUR_MODE_RGBA)
Creates a colour code from RGB(A) components.
PHP Code: ConvertColour(colour, ColourMode:from, ColourMode:to, Float: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(colour1, colour2, Float:amount, ColourMode: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(colour, ColourMode:mode = COLOUR_MODE_RGBA)
Returns the brightness of a colour.
PHP Code: DarkenColour(colour, Float:amount, ColourMode:mode = COLOUR_MODE_RGBA)
Darkens a colour by interpolating it with the black colour.
PHP Code: LightenColour(colour, Float:amount, ColourMode:mode = COLOUR_MODE_RGBA)
Lightens a colour by interpolating it with the white colour.
PHP Code: GrayscaleColour(colour, ColourMode: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.
|
|
|
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.
|
|
|
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)
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.
Ahora desmarcaremos la casilla de Bing (Bing es un buscador web de Microsoft)
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
Despu?s de esto copiaremos estos 3 archivos a la carpeta ra?z de nuestro GTA.?
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?
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?:?
A donde dice \gta_sa.exe, lo cambiaremos por:?enb.exe
Le daremos en Aceptar y cerramos directamente.?
Ahora ya esta todo solucionado, solo quedara darle click derecho y ejecutar como administrador a esto:?
?Felicidades, ahora te abrir??el SA-MP con el ENB!?
Que lo disfrutes.
|
|
|
|