Welcome, Guest |
You have to register before you can post on our site.
|
Forum Statistics |
» Members: 6,511
» Latest member: snaptrap
» Forum threads: 2,233
» Forum posts: 12,034
Full Statistics
|
Online Users |
There are currently 318 online users. » 0 Member(s) | 316 Guest(s) Google, Bing
|
Latest Threads |
I humor myself
Forum: Programming
Last Post: nami16504
11 hours ago
» Replies: 5
» Views: 8,043
|
Command does not work in-...
Forum: Pawn Scripting
Last Post: PANZEHIR_
2024-11-23, 06:36 PM
» Replies: 0
» Views: 43
|
White Screen
Forum: Support
Last Post: Phat202146_real
2024-11-21, 02:50 PM
» Replies: 0
» Views: 43
|
I get error 021 using y_h...
Forum: Pawn Scripting
Last Post: daniscript18
2024-11-18, 11:34 PM
» Replies: 0
» Views: 61
|
Il reste des français sur...
Forum: French/Fran?ais
Last Post: tysanio
2024-11-18, 05:39 AM
» Replies: 2
» Views: 469
|
Object creation issues
Forum: Programming
Last Post: K1271
2024-11-15, 11:51 PM
» Replies: 0
» Views: 56
|
Is the SAMP Hosting the s...
Forum: General Discussions
Last Post: OperaGX
2024-11-14, 09:33 PM
» Replies: 0
» Views: 76
|
Run time error 19: "File ...
Forum: Pawn Scripting
Last Post: Rexey
2024-11-14, 03:50 AM
» Replies: 0
» Views: 65
|
How to Compile Your Gamem...
Forum: Tutorials
Last Post: thelante
2024-11-13, 08:50 AM
» Replies: 3
» Views: 476
|
Modeller wanted
Forum: Development Updates
Last Post: acc.gangbeni
2024-11-11, 05:10 PM
» Replies: 9
» Views: 16,509
|
|
|
textdraw editors |
Posted by: Metro - 2020-03-15, 01:40 PM - Forum: Pawn Scripting
- Replies (1)
|
|
how do people create textdraws nowadays? I have the full sampctl setup and all that but trying to install textdraw editors makes me kill myself because they don't even compile due to standard library conflicts and whatnot
is there anyone here who uses textdraw editors using sampctl who could help? i've had no luck so far
|
|
|
[Dudas] |
Posted by: whislire - 2020-03-12, 05:08 AM - Forum: Spanish/Espa?ol
- Replies (1)
|
|
Buenas noches a todos mi consulta es al siguiente he comenzado a editar una gamemode que trabaja con m?dulos es necesario compilar con un programa aparte (?)
desde ya muchas gracias :D
|
|
|
Coronavirus thread |
Posted by: Metro - 2020-03-11, 08:34 AM - Forum: Chat
- Replies (11)
|
|
So we all know what the deal is
How are you guys holding up?
Over here in Italy it's pretty bad, some regions are in quarantine and since a few days ago the whole country's been on lockdown. Most businesses are closed, I haven't been to school in weeks now and in some places there's even police patrols going around with megaphones telling people to stay inside
pretty spooky stuff, but i've taken the occasion to get some dust off my samp scripting
|
|
|
What map editor do you guys use? |
Posted by: Metro - 2020-03-09, 04:39 PM - Forum: Pawn Scripting
- Replies (2)
|
|
I've looked for more modern and comfortable map editors through the forums but everyone still seems to use the ancient godawful SAMP Map Editor.?
What map editor do you guys use? Is there any editor you would recommend due to its more user friendly interface and features?
|
|
|
[MAP] Drug Tunnel |
Posted by: DeadDon - 2020-03-09, 11:48 AM - Forum: Videos and Screenshots
- Replies (5)
|
|
Recently I've been starting to work on a Narcos project with Abruzzi, I also started to renew a 2 year old gamemode of mine and I've mad this map which will be implemented in both projects.
The map is 0.3.7. although it gets you from the interior to the outside world.
From the strip bar, you have to go through the basement of the bar, to enter the long tunnel and to reach the basement of a warehouse, which leads you up through an elevator (no teleporation needed)...
If you want to test the map or consider collaborating with me on the project, you can also visit my discord:
|
|
|
[Ayuda] Limitador de velocidad |
Posted by: ThePez - 2020-03-02, 07:39 PM - Forum: Programaci?n
- Replies (2)
|
|
Buenos d?as
He estado investigando como hacer un limitador de velocidad, es decir
cuando un jugador ejecute un comando estando en un veh?culo,?
no puede tener mas velocidad que la establecida por el.
/limitador [velocidad]
[velocidad] es la velocidad m?xima?alcanzada por el veh?culo
para ello encontr? una funci?n
PHP Code: SetVehicleVelocity(vehicleid, Float:X, Float:Y, Float:Z);
Aun no se como implementarla.
como comprobar para que direccion esta yendo.
PHP Code: CMD:limitador(playerid, params[])
{
? ? if(!sscanf(params, "d", velocidad))
? ? {
? ? ? ??new vehicleid =?GetPlayerVehicleID(playerid);
? ?? ? ?SetVehicleVelocity(vehicleid, velocidad, velocidad, velocidad);
? ??}
}
En este CMD hay varios errores, falta comprobar si esta en un veh?culo y si la velocidad es mas alta de lo que puede ir en realidad el vehiculo.
no se me ocurre una forma de lograr esto.
|
|
|
[MAP] SpaceShip Interior |
Posted by: DeadDon - 2020-03-01, 03:55 PM - Forum: Videos and Screenshots
- Replies (1)
|
|
I'm DeadDon aka Gramfather (i.g),?I haven't done mapping in quite some time because of studies. Got this idea, had some free time, said why the f not.?
Currently it's just the main room, but the map can easily be expanded into a very huge spaceship.
All objects are GTA/SA-MP objects, map is completely 0.3.7 . Let me know what you think.
It would be nice for somebody to make a "inter-galactic"/star-trek/star-wars server, now that it's doable with 0.3dl as well.
|
|
|
Nickk's TextDraw Editor v5.0 (Final Release) - Multilanguage support! |
Posted by: Nickk888 - 2020-03-01, 11:55 AM - Forum: Filterscripts
- Replies (13)
|
|
Hello again dear SA-MP community! I'm very happy to release the final version of my TextDraw editor! I've improved the code and performance a little bit, i've also added a few new features to the script! It's still very easy to use and Plugin free so you can use it without worrying that a plugin might not work in a new version of SA-MP, it's like i said the final release, there will be no new features in the future beside bugfixes that is.
About Script:
NTD is a TextDraw editor, i got inspired by iPLEOMAX's TextDraw editor he made a few years ago, my goal was to make a Plugin free, easy to use, straight forward TextDraw editor, the script contains a lot of cool features, more then the original editor by iPLEOMAX! (More below).
What has changed in v5.0?:
Beside code optimizations and some known bugfixes, i've also added a File based language system! Yes! It's now possible to add new languages without interacting with the code! All messages are contained in the XML files in the "languages" directory! Why? Because I've got a lot of request to add new languages into the script, so, to make it easier for people, i created this system.
This system works also great with the new File based template system that allows you to create new templates in a single file! Also with different languages!
A new and cool feature is the "Compact mode", if you have a lot of stuff on the screen while editing, you can make a smaller version of the interface that you can place anywhere on the screen on both X and Y coords!
A big problem that has Beta 1.0-4.45 is that there is no option to change the layer of the TextDraw, so if you wanted to create a Background for your TextDraw's, you had to make it in the Post after exporting. Now you can change the layer dynamically within the script!
Also you are now able to change the values of a TextDraw manually by pressing the ALT key while editing.
More changes in the "Changelog" rubric
Features:
- Clickable interface.
- No Plugins needed!
- Multilanguage support (English, Polish and German natively included)
- Build-in Sprite selector(Over 300 sprites!).
- Preview Model and Sprites support.
- Changeable TextDraw variable name in-game.
- Over 35 Pre-made colors to choose.
- Fully customizable interface(Button colors, override colors & interface position).
- TextDraw templates(Pre-made TextDraws to choose and create your own!).
- Quick Selection tool(Just select your TextDraw! No need to search within the Dialog!).
- TextDraw visibility option(If you want to show other players your work!).
- Fully editable Preview Model(Rotation, Zoom, ID and colors!).
- Easy export your project(Simple export or Self-working Script).
- Quick, fluid and stable working environment.
- File based language and templates system(Add new languages without code interaction!).
- Array Export mode(Collapses TextDraws with default Variable name into an Array shortening the code amount!).
- TextDraw layering(Change the layer of a TextDraw In-Game!).
- Editor Compact mode(Creates a smaller version of the interface to make working easier!).
And many more!
Changelog:
- Fixed small errors.
- Code optimizations.
*ADDED* File based language system allows you to add new languages without hard coding it!
*ADDED* Editor compact mode that creates a smaller editor interface that you can move in the X and Y coordinates!
*ADDED* File base template system allows you to add new templates in different languages within a single file!
*ADDED* Feature to change the layer of a Textdraw.
*ADDED* Manual value change using the ALT key while changing values.
*REMOVED* Polish TXD buttons.
*REMOVED* Update check due to non existence domain.
*IMPROVED* Dialog page change with now both "Next" and "Back" button.
*IMPROVED* Small changes in the interface colors and style.
*IMRPOVED* New Splash Screen/Welcome Screen.
*IMPROVED* Changed from simple for-loops to much faster foreach-loops for projects, textdraws, languages and templates.
*IMPROVED* Custom color changing dialog now allows you to insert both HEX and RGBA values.
*IMPROVED* Editor interface is now always on top of everything
Screenshots(Beta 4.0):
Video:
Download:
Want new languages?:
You want a new language?
Translate the "lang_eng.xml", "templates.xml" and "languages.list" file and send it to [email protected]!
Your new language will appear on the GitHub page soon after!
You can also push a pull request on GitHub!
Credits:
a_samp: SAMP Team
ZCMD: Zeex
DFILE: DrAkE
rgb: Abyss Morgan
sscanf: Y-Less
|
|
|
[Gu?a] IF & ELSE |
Posted by: SKainer - 2020-02-27, 03:03 AM - Forum: Programaci?n
- No Replies
|
|
?Qu? es IF y ELSE?
Son condicionales, las estructuras m?s simples e importantes de la programaci?n, se usan para dar una condici?n a variables y m?s. Para hacerlo m?s sencillo vamos a ir por explicaci?n de cada una.
IF
En espa?ol IF significa "Si" entorno a una condici?n. Como decir: "Si tengo 100 monedas me comprar? un pan.", veamos la sint?xis:
Ahora, demos un ejemplo de su uso:
PHP Code: new Monedas; // Creamos la variable Monedas para ver las monedas
new Precio; // Creamos la variable "Precio" para ver el precio del producto.
Monedas = 100;
Precio = 50;
if(Monedas > Precio) // Declaramos con el operador ">" que si las monedas son mayores al precio, ejecutamos el ComprarProducto();
{ // Abrimos llave.
ComprarProducto(); // Funci?n que me acabo de inventar que indica que compramos el producto.
printf("Haz comprado el producto!");
} // Cerramos llave.
Sencillo no? Sigamos!
ELSE?
Ahora que ya vimos el "IF" tenemos que ver qu? es el "ELSE", bueno, el else es como marcar lo contrario a lo que pasa si la condici?n no se cumple, osea, else no es una condici?n sino una acci?n que se usa para mostrar lo contrario, veamos su sint?xis:
PHP Code: if(condici?n)
{
C?digo
}
else
{
C?digo
}
Ahora un ejemplo:
PHP Code: new Monedas; // Creamos la variable Monedas para ver las monedas.
new Precio; // Creamos la variable Precio para ver el precio
Monedas = 100;
Precio = 150;
if(Monedas > Precio) // Declaramos con el operador ">" que si las Monedas son mayores al Precio, ejecutamos el ComprarProducto();
{ // Abrimos llave
ComprarProducto(); // Funci?n que me acabo de inventar y que no existe.
} // Cerramos llave
else // Ejecutamos el else que dir?a "De lo contrario"
{ // Abrimos llave
printf("No tienes suficiente dinero para comprar el producto"); // Imprimimos el mensaje puesto declarando que no tengo suficiente dinero.
} // Cerramos llave.
[Nota importante]: ELSE siempre va despu?s del IF, pero no es necesario ponerlo por cada IF?que uses.
Bueeeno. Eso es todo lo que puedo explicar, b?sicamente?eso es todo lo que puedo ense?ar, tal vez vaya editando el post para que quede m?s bonito. Como esta es mi primera gu?a, quise hacer algo sencillo y espero que se entienda, si me equivoco en algo, h?ganmelo saber.
?Nos vemos!
|
|
|
|