Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Luis_Labarca

#1
Map Showroom / Re: mod favelas v0.1
Dec 22, 2024, 04:09 AM
It is turned off friend, I already put the url of the files again, I had not realized that the link did not appear
#2
Quote from: HunTinG on Aug 12, 2024, 09:39 PMok, after tons and tons of testing, there's just a small oversight, servers should now manually force shotgun reload to be faster in order for the gun animation to display correctly and not feel confusing to the players

but this is hands down the best update yet, the sync is just incredible, good job so far, seems like laggers are the ones at disadvantage now, and wow, shotgun finally syncs like stubby,m4 and the rest of the guns, that's a big step up

got nothing to add, so yeah once again thanks for showing interest towards this nearly dead game, i personally appreciate it



That's right, friend, I came to comment on this. Before, it worked for me, I used it in some functions that were called at a certain time, but now it only works when getting in and out of a vehicle when shooting, I thought something had been done wrong and it is the update that does that.

The solution I was able to do was to use the ysc3839 timer system to send the client to the server and update a new one every so often.
#3
Quote from: Abbas_905 on Jul 14, 2024, 01:43 AMHello Everyone
I want your smalll help,
need adminmod,apark command for admins

Hello bro, I don't know if you are looking for a cmd to park vehicles.

I use this on my server, I adjust the vehicle to my liking, then I save, I hope it works for you, I tried it before passing it on and it works fine.


else if ( cmd == "apark"||  cmd == "setpark")
{
if ( !text ) MessagePlayer("Usage: /"+cmd+" [V/ID] ", player );
else {
local ve = GetVehicle( GetTok( text, " ", 1 ) );
if ( !ve ) MessagePlayer( "Vehicle id invalid.", player );
else {

local x = ve.Pos.x.tointeger(),y = ve.Pos.y.tointeger(),z = ve.Pos.z.tointeger();
ve.SpawnPos = Vector(x,y,z);
ve.EulerSpawnAngle = Vector(ve.EulerAngle.x,ve.EulerAngle.y,ve.EulerAngle.z)
MessagePlayer( "Vehicle Pos Saved : PosX "+ve.Pos.x+",PosY "+ve.Pos.y+",PosZ "+ve.Pos.z+", AngleX "+ve.EulerAngle.x+",AngleY "+ve.EulerAngle.y+",AngleZ "+ve.EulerAngle.z, player );

//These two lines are to save in the database but remember that you must modify it to your data for it to work
//QuerySQL( DatabaseVehicle, "UPDATE Vehicle SET PosX='"+x+"',PosY='"+y+"',PosZ='"+z+"' WHERE rowid LIKE '" + ve.ID + "'" );
///QuerySQL( DatabaseVehicle, "UPDATE Vehicle SET AngX='"+ve.EulerAngle.x+"',AngY='"+ve.EulerAngle.y+"',AngZ='"+ve.EulerAngle.z+"' WHERE rowid LIKE '" + ve.ID + "'" );
}
}
}




#4
Hello friends, greetings, here I bring you the interior of cafe under open with interior.

Add on server
function onScriptLoad()
{
SetBackfaceCullingDisabled( true );//to load the textures of the objects inside
///--Object id for cafeunder
RawHideMapObject(448,-9231,621,91)  //veg_palwee01
RawHideMapObject(1719,-9564,460,267)  //sjmbigsign01
RawHideMapObject(392,-9564,459,205)  //BillBd3
RawHideMapObject(1712,-8991,203,143)  //lhaitcut
RawHideMapObject(1644,-8991,203,143)  //LODitcut
RawHideMapObject(474,-9200,428,91)  //veg_palmbig14
//---

}

add in store > maps.xml

<?xml version="1.0" encoding="ASCII" ?>
<itemlist>
        <item model="6000" name="cafeunder">
            <position x="-899.193" y="20.3173" z="14.3973" />
            <rotation format="axisangle" x="0" y="0" z="0" angle="1" />
        </item>

    <item model="6001" name="LODcafeunder">
            <position x="-899.193" y="20.3173" z="14.3973" />
            <rotation format="axisangle" x="0" y="0" z="0" angle="1" />
        </item>
</itemlist>


[
color=black]add in store > objects.xml[/color]

<?xml version="1.0" encoding="ASCII"?>
<objectlist>
  <object id="0">
      <flags value="0" />
      <texture path="cafeunder.txd" />
      <collision path="cafeunder.col" />
      <model path="cafeunder.dff" distance="299" />
  </object>
  <object id="1">
      <flags value="0" />
      <texture path="cafeunder.txd" />
      <collision type="none" />
      <model path="LODcafeunder.dff" distance="20000" />
  </object>
</objectlist>


Link1 : CafeUnder_unp

link2: FolderStore




photos
1

2

3

4

5

6

7

8

9

10

11
#5
General Discussion / Re: doubt checkpoints
Nov 27, 2024, 11:44 AM
Quote from: PSL on Nov 27, 2024, 07:27 AMThis is a function that I made to create buildings and undo buildings, and redo buildings, and I created two lists to store created buildings and deleted buildings for recovery by command, and I think this is very similar to distance judgment, so you can add a timer, and when there is no one around 200 meters around the checkpoint, delete it and record, When there are people around 200 meters, recover through the list.

ok bro I'm going to test that function to make the system cleaner :D
#6
General Discussion / Re: doubt checkpoints
Nov 27, 2024, 11:43 AM
Quote from: habi2 on Nov 27, 2024, 06:41 AMThere won't be any delay.
Thanks bro ;)
#7
General Discussion / doubt checkpoints
Nov 26, 2024, 10:50 PM
Greetings friends, I have a question, I hope you can clarify it for me.

I have around 200 checkpoints in different locations in the city. The function says that if a player is about 20 meters away from a checkpoint, it deletes it and if he gets closer, it creates it again.
My question is that if this would affect the server with delays, what would be more recommended? leave them fixed or if this way I did it is good or open some other more recommended way.
[/color]



This is the function I use
//--Table server
CheckPoint1 <- array( GetMaxPlayers(), 0 );
CheckPoint2 <- array( GetMaxPlayers(), 0 );
CheckPoint3 <- array( GetMaxPlayers(), 0 );


//server Funtions
function onClientScriptData( player )
{
    local ReadString = Stream.ReadString();
    local ReadInt = Stream.ReadInt();


            if (  ReadString  == "CreateCheckPoints")
            {
            if ( player.IsSpawned )
{
             onPlayerCheckpint( player )
            }
            }
           
}


function onPlayerCheckpint( player )
{

//---------------------
if( CheckPoint1[ player.ID ] == 0 && DistanceFromPoint( player.Pos.x, player.Pos.y, 316.729, 11.0378 ) < 20 )
{
CheckPoint1[ player.ID ] = CreateCheckpoint( player, player.UniqueWorld, true, Vector( 316.729, 11.0378, 10.8006), RGB(255,255,255), 1 );
}
if( CheckPoint1[ player.ID ] != 0 && DistanceFromPoint( player.Pos.x, player.Pos.y, 316.729, 11.0378) > 20 )
{
CheckPoint1[ player.ID ].Remove(), CheckPoint1[ player.ID ] = 0;
}
//---------------------
if( CheckPoint2[ player.ID ] == 0 && DistanceFromPoint( player.Pos.x, player.Pos.y, 318.927, 41.5121 ) < 20 )
{
CheckPoint2[ player.ID ] = CreateCheckpoint( player, player.UniqueWorld, true, Vector(318.927, 41.5121, 500.942), RGB(255,255,255), 1 );
}
if( CheckPoint2[ player.ID ] != 0 && DistanceFromPoint( player.Pos.x, player.Pos.y, 318.927, 41.5121) > 20 )
{
CheckPoint2[ player.ID ].Remove(), CheckPoint2[ player.ID ] = 0;
}
//---------------------
if( CheckPoint3[ player.ID ] == 0 && DistanceFromPoint( player.Pos.x, player.Pos.y, 301.595, 17.9316 ) < 20 )
{
CheckPoint3[ player.ID ] = CreateCheckpoint( player, player.UniqueWorld, true, Vector(301.595, 17.9316, 11.7104), RGB(255,255,255), 1 );
}
if( CheckPoint3[ player.ID ] != 0 && DistanceFromPoint( player.Pos.x, player.Pos.y, 301.595, 17.9316) > 20 )
{
CheckPoint3[ player.ID ].Remove(), CheckPoint3[ player.ID ] = 0;
}
//---------------------
}





///Client Sever
TimerUpdateCheckPoint <- 200;

function Script::ScriptProcess()
{
    ::PantallaX = GUI.GetScreenSize().X;
    ::PantallaY = GUI.GetScreenSize().Y;


if ( TimerUpdateCheckPoint > 1 )::TimerUpdateCheckPoint -= 1;
if ( TimerUpdateCheckPoint < 50 )
{
::TimerUpdateCheckPoint = 200;
local plr = World.FindLocalPlayer();
if ( plr != null )
{
local Datos = Stream();
Datos.WriteString( "CreateCheckPoints" );
Server.SendData(Datos);
}
}

}

#8
Quote from: KAKAN on Jul 28, 2015, 03:05 PMSame problem happens with me in custom weps, when someone does /wep 116(custom) it kicks the player

Here is the log
[spoiler="Click here for the log"]Kicking player 'KAKAN' (0), acquired weapon 116.
Player 'KAKAN' ID 0 disconnected (kicked).
Kicking player ID 0, no record of such connection ID exists.
Kicking player ID 0, no record of such connection ID exists.
Kicking player ID 0, no record of such connection ID exists.
Kicking player ID 0, no record of such connection ID exists.
Kicking player ID 0, no record of such connection ID exists.
Kicking player ID 0, no record of such connection ID exists.
Kicking player ID 0, no record of such connection ID exists.
Kicking player ID 0, no record of such connection ID exists.
Kicking player ID 0, no record of such connection ID exists.
Kicking player ID 0, no record of such connection ID exists.
Kicking player ID 0, no record of such connection ID exists.
Kicking player ID 0, no record of such connection ID exists.
Kicking player ID 0, no record of such connection ID exists.
Kicking player ID 0, no record of such connection ID exists.
Kicking player ID 0, no record of such connection ID exists.
Kicking player ID 0, no record of such connection ID exists.
Kicking player ID 0, no record of such connection ID exists.
Kicking player ID 0, no record of such connection ID exists.
Kicking player ID 0, no record of such connection ID exists.
Kicking player ID 0, no record of such connection ID exists.
Kicking player ID 0, no record of such connection ID exists.
Kicking player ID 0, no record of such connection ID exists.
Kicking player ID 0, no record of such connection ID exists.
Kicking player ID 0, no record of such connection ID exists.
Kicking player ID 0, no record of such connection ID exists.
Kicking player ID 0, no record of such connection ID exists.
Kicking player ID 0, no record of such connection ID exists.
Kicking player ID 0, no record of such connection ID exists.[/spoiler]

Hello bro, I have the same problem with a custom weapon when I walk and click, this error occurs to me, what would be the solution?
#9
hello friend link dead
#10
Map Showroom / mod favelas v0.1
Oct 15, 2023, 07:08 PM
Hello, here I want to share a small modification of map Akinahill to Brazilian style favelas v0.1

Credits to the creators

(BEWARE I am not the creator of the objects but I did modify and convert them)

this mod modified by my Luis_Labarca
The base mod was akina, credits to its creators.
mod taken from the vcmp forum - (https://forum.vc-mp.org/index.php?topic=6956.msg48971#msg48971)
I was in charge of modifying some things (houses, objects, textures, etc.)

Models extracted from the mod
- Favelas Pack V1.8 Rebuild By NATAN Gameron
- extracted models barracos.dff , barracos.txd, barracos.col,barracos2.dff , barracos2.txd, barracos2.col


Monument taken from the mod
- Favela City of God
Authors: KOHDYKTOP, JooJ, Razor


screeshots
//-------------
 
https://drive.usercontent.google.com/download?id=1LgockMx0qWrzA7LaXpyvQu747_5e_Gwd&authuser=0
https://drive.usercontent.google.com/download?id=1SQ7F1sSHCMcJaC2IKeLAI8knG1wBGjAu&authuser=0
https://drive.usercontent.google.com/download?id=1fy2wDGv45lTEodT4MgPbQCIfF2VfAMPu&authuser=0
//---------------


Link mod : https://drive.google.com/file/d/18WwRvA4vjcKh7Dady6JOgMfzUN5Bq9Br/view?usp=sharing

To install them, drag everything to your store folder (be careful if you have objects installed you must change the id so that there are no conflicts with your previous objects)
#11
Quote from: Mikimon on Jan 21, 2023, 10:38 PMmuy bueno, se siente la verdadera experiencia de un roleplay en vcmp :D :D :D
gracias  por tu comentario amigo ;D ;) se aceptan sugerencias
#12

Good friends, I bring you the improved RP server again


The server has two languages ​​Spanish and English
I accept suggestions to improve the server

-You can enter the server with any name


Name : ..:[RPG]:Vice-City::..::Real-Life:[RPG]::.
IP : 51.222.28.159:8194
Game Mode : RPG Free
Manger : Luis_Labarca
Slot : 0/100
v0.1


Server Details



- Vehicle system
*You can buy your vehicle (Boats, Motorcycles, Helicopters, Cars)
*You can pay a renter

- Vehicle damage system
*If the motor is damaged you must request a mechanic or go to sunchine
*If you do not add oil to the engine you can damage it, it is bought in stores

- Gasoline system
*The vehicle may run out of gasoline
*You can go to the nearest gas station
*If you didn't have time to get to the gas station, you can buy a jerry can (in stores)

- bank system
* You want a bank account you can ask for your credit card at the bank
*You can save your money in your bank account
*You can make transfers to other accounts
*There are ATMs throughout the city.

- Parking system
* For your vehicle to be safe you must park it in a legal parking lot
*This way you avoid fines or damage to the vehicle, parking has its fee

- Job system
*There are different jobs in the city such as
* Trucker - Responsible for transporting merchandise
* Fisherman - In charge of looking for fish and selling them
*Basurero - Responsible for collecting garbage throughout the city
* Taxi - In charge of transporting person
*Gas Trucker -In charge of looking for gasoline for gas stations
*Pizzero - In charge of delivering pizzas throughout the city

- Faction system
*There are different factions like
*Police
*Fireman
*Military man
*Gangster

- Inventory system
* to open the inventory you must press the Y Key
*The inventory allows you to see a series of ITMS that you can use as
* drugs, drum can, food, c4, money ETC

- ITMS system lying on the ground
* to be able to take the one from the ground you must stop above it and press ( N )
*to throw it to the ground you must open the inventory
*you can throw weapons

- Properties system
*You can buy, sell your property
* You can decorate your custom interiors
*You can save your ITMS
* You can close the doors of your property
*Shop system
*You can buy food

- Garbage container system
*You can loot containers by pressing ( N )
*You can find ITMS as weapons Etc..

- Hospital System
* when fainting you can wait for a doctor or be transported to the hospital

-Black market system
* you can buy drugs, weapons, clothes etc..
#13
General Discussion / Re: vehicle question xml
Nov 18, 2022, 11:55 PM
Quote from: Sebastian on Nov 18, 2022, 04:11 PMYes,  you must make it be part of the chassis_hi in order to be available all the time.
VCMP cannot handle the extra parts of vehicles,  so there is no way you can enable/disable extras.

Also,  via SetParts you can just set parts like windscreen, bonnet,  doors,  etc
Ok friend thank you very much I hope that one day it will be possible that would be great ;D :D
#14
General Discussion / vehicle question xml
Nov 16, 2022, 03:51 AM
I added a custom vehicle to my server so far so good.

The vehicle that I added is a lantern. but sometimes it spawns without the tank? (on chassis) is there a way to get the tank out whenever I want with setparts?



I have opened the vehicle with Zmodeler and the object says Extras1

should I stick it to the chassis_hi?
or can someone give me the id of extras1 in setpart(id,id)?
#15
solution >:(

 If anybody having the problem, install Notepad++.
Then go to
Edit->EOL Conversion->Unix(LF)

This will make the script work on Linux systems.