Welcome, Guest |
You have to register before you can post on our site.
|
Online Users |
There are currently 232 online users. » 0 Member(s) | 229 Guest(s) Bing, Google, Yandex
|
|
|
AttachVehicleToVehicle |
Posted by: aguadecoco1301 - 2024-01-20, 12:53 AM - Forum: Pawn Scripting
- Replies (1)
|
 |
Hello everyone. I am programming a server in Pawn, and I would like to know if there is any function or plugin that allows to attach two vehicles and have them move at the same time, as it happens for example in the "Cop Wheels" mission where HPV1000 are hooked to the vehicle transporter truck.
This is something I've wanted to do for a long time and never found anything, I only remember once finding a post in the official forum about it only being possible with a plugin, but I never found any that allowed it.
I also add that I know you can teleport the vehicle for each update, but this looks ugly and causes collisions.
I also know that in Sanny Builder for programming in cleos there is such a function.
Does anyone know a way to do it?
|
|
|
discord ban?? |
Posted by: CJ101 - 2024-01-19, 08:05 PM - Forum: Chat
- No Replies
|
 |
I seem to be banned from the SA-MP OpenMp discord. how would i go about appealing that?
|
|
|
[Early BETA] Virtual Reality Roleplay [0.3.7./0.3.DL] |
Posted by: Olivia Benson - 2024-01-19, 07:30 PM - Forum: Advertisements
- No Replies
|
 |
Virtual Reality Roleplay is a unique, novel, dynamic San Andreas: multiplayer server. We attach great importance to friendly cooperation and professional entertainment of our players. We specialize in offering the San Andreas: Multiplayer Community something new and unprecedented. We achieve this through our hard work, which we put into our community every day. Our server is constantly being expanded with new ideas, maps, systems and other things and now we want to prove that there is more to all of these things.
The meticulously designed environments, including cities, businesses, and landmarks, enhance the immersion. Continuously evolving with fresh content and adventures, Virtual Reality Roleplay ensures an engaging and dynamic community-driven experience. Step into this virtual world and unleash your creativity.
![[Image: VRRP-Why-Banner.png]](https://i.ibb.co/XtzS6LB/VRRP-Why-Banner.png)
- We are a well-rehearsed team, we support each other and get the best out of the Community!
- We are always working to bring the server forward with the help of the Community.
- We listen to your Community. Our Community has a full say in all matters.
- We officer active support, whether on Discord or SAMP Server. You can always reach us!
Virtual Reality Roleplay is a medium/high RP server with a focus on an economic system that is as close to real life as possible. We make every effort every day to resolve or listen to the players' concerns as best we can. The team makes a special effort to correct any errors or oddities as quickly as possible. We are currently in the early beta stage and of course depend on your help..
In addition to various jobs in which you can work, we also offer you numerous factions. We have everything from legal factions to neutral and illegal factions. It's entirely up to you which path you will take. Are you more of a law-abiding citizen? Or do you prefer action and crime? Create your character according to your wishes and live it out.
![[Image: VRRP-Faction-Banner-2.png]](https://i.ibb.co/3rjBfq6/VRRP-Faction-Banner-2.png)
The San Andreas Government is responsible, among other things, for legal development in San Andreas. Tax-related matters are also subject to this. The governor is elected by the majority of citizens.
The Los Santos Police Department is currently the only law enforcement agency in Los Santos. Their main job is to conduct investigations and keep crime rates low. In order to comply with this, the Los Santos Police Department has the most modern means and techniques at its disposal. In addition, the Los Santos Police Department is one of the largest and most modern departments in all of San Andreas.
The Los Santos Fire and Medical Department is composed of two departments. The medical and fire engineering units. The main goal of the Los Santos Fire and Medical Department is to provide support to the Los Santos Police Department's emergency services and to respond to medical and fire-related emergency calls.
Los Santos Transport
Taxi Driver
As a taxi driver, your job is to get your passengers safely from A to B. This job also requires a certain basic knowledge of the city in order to avoid unnecessary travel time.
Bus Driver
Have you always wanted to drive a heavy bus? Then the Bus Driver might be right for you. You move through the city on fixed routes to transport your passengers from A to B. In addition to the fixed routes, passengers can also get on and off along the route. Are you ready for this challenge?
Train Driver
Who hasn't wanted to be able to drive their own train? Well then now is the time. Get behind the wheel of a train and transport guests from one station to the next throughout San Andreas.
Mechanic Job
We came up with something very special for our mechanic job. The main task is to repair and/or upgrade other players' vehicles. You have at your disposal important utensils such as a lifting platform (which can actually be moved up and down), a tool box and a PC. In order to make the job more attractive, other players actually depend on the mechanic to be able to repair their vehicles.
Courier
Have you always found it exciting to be on the streets of Los Santos as a Courier? Well then listen carefully. It's your job to deliver to the various stores in Los Santos. Because the rule is, no goods, no business. You are responsible for ensuring that every store owner always has enough goods in stock. You are an unimaginably important factor in maintaining the economy.
Miners
Do you love hard work, coming home soaked in sweat after work? Well then maybe this would be the right job for you. As a miner, you are responsible for mining valuable materials in the Las Venturas mine. But it should be said that having your own vehicle is an advantage.
Dear players, first and foremost we would like to thank you for your attention. Lately we have put a lot of time and effort into our project, working day and night to be able to offer you, dear users, a reasonable and appealing server. In addition to our numerous features, our mappers have of course done a full job to create unique map creations. Going from interiors to exteriors. For detailed information about our features, visit our Discord. We'll be happy to explain everything you want to know.
We, the team at Virtual Reality Roleplay, do everything we can to bring you the best possible game happening, and we are happy and proud. With this in mind, we look forward to your visit and lots of fun!
Contact:
Server IP: 191.96.94.120:7777
Youtube: https://www.youtube.com/@virtualrealityrp
Discord: https://discord.gg/8y7QEVrNrp
|
|
|
issue with forEach |
Posted by: CJ101 - 2024-01-19, 12:16 AM - Forum: Pawn Scripting
- Replies (2)
|
 |
Does open.mp not work with foreach? I get the error:
C:\Users\jdawg\OneDrive\Documents\RXDM\gamemodes\rxdm-sql.pwn(4887) : error 017: undefined symbol "Rows@YSII_Ag"
Here's part of my code, the error is on the foreach() line
Code: mysql_query(rxdm,"SELECT * FROM `props`");
new Rows = cache_num_rows();
new tmp[35];
if(Rows > 0)
{
foreach (new row:Rows)
{
|
|
|
Connecting and disconnecting the server |
Posted by: iyat.asagy3 - 2024-01-18, 09:07 PM - Forum: Support
- No Replies
|
 |
Hello, how long has it been when I go to a server, after about 10 to 12 minutes the server restarts for me and sometimes I need to exit the game in all servers, how can I solve this problem?
|
|
|
Parallel for missing iterations? |
Posted by: visibleonbush1 - 2024-01-18, 07:00 PM - Forum: Questions and Suggestions
- Replies (2)
|
 |
Hi, I'm working on optimizing a piece of code, the code performs well for smaller values of 'n' (e.g., 10,000), but when 'n' is significantly larger (e.g., 100,000), it seems to skip a considerable number of iterations. Specifically, I've tested it with 'n' set to 100,000, and it only executes 1,410,065,408 iterations out of the expected 10,000,000,000., im asking here because if n is not so big (10k) he is perfectly fine, am i missing anything (thank you in advance).
Code: int compute_forces( void )
{
int n_intersections = 0;
int nThread = omp_get_num_threads();
int *nit = calloc(8, sizeof(int));
long long asdf = 0;
// Parallelized the outer function, because the internal would have a lot more overhead
#pragma omp parallel for collapse(2) default(none) shared(ncircles, circles, EPSILON, K, nit) schedule(static, ncircles) reduction(+:n_intersections) reduction(+:asdf)
for (int i=0; i<ncircles; i++) {
for (int j=0; j<ncircles; j++) {
//nit[omp_get_thread_num()]++;
asdf++;
if (j <= i) {
continue;
}
const float deltax = circles[j].x - circles[i].x;
const float deltay = circles[j].y - circles[i].y;
const float dist = hypotf(deltax, deltay);
const float Rsum = circles[i].r + circles[j].r;
if (dist < Rsum - EPSILON) {
n_intersections++;
const float overlap = Rsum - dist;
assert(overlap > 0.0);
const float overlap_tmp = overlap / (dist + EPSILON);
const float overlap_x = overlap_tmp * deltax;
const float overlap_y = overlap_tmp * deltay;
#pragma omp atomic
circles[i].dx -= overlap_x;
#pragma omp atomic
circles[i].dy -= overlap_y;
#pragma omp atomic
circles[j].dx += overlap_x;
#pragma omp atomic
circles[j].dy += overlap_y;
}
}
}
|
|
|
JSON Gamemode Base |
Posted by: Dev86 - 2024-01-16, 01:52 PM - Forum: Gamemodes
- No Replies
|
 |
JSON Gamemode Base
An OpenMP gamemode that stores player data in a JSON Object using samp-json.
Example of a player object:
Code: {
"id": 0,
"name": "Davorin_Adler",
"password": "<password-hash-goes-here>"
}
All columns on your MySQL Database will be loaded into your JSON Object.
NOTE:
I have written this initially for a gamemode I was personally going to be working on. However, it turned out to be more of a hassle to work with than anything.
I would recommend you base your new gamemode with this if you are a martyr.
DEPENDENCIES:
pawn-json
MySQL R41-4 by pBlueG
YSI 5.x
- y_inline
- y_inline_mysql
- y_inline_bcrypt
- y_dialog
INSTALL:
https://github.com/sampdevi/samp-json-auth
no sampctl support (yet) I'm too lazy zzzzzz
|
|
|
|