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 - ℛḝξ☂

#31
Quote from: vitogta on Jul 21, 2018, 07:44 AM
Quote from: Rest on Jul 21, 2018, 07:29 AMMost of the time we don't want the player to teleport to his default spawn position
As I know to turn off inbuild LW-concept of gameplay with spawnlocs/skins/spawnwep by selection of skin there is a special function ::SetUseClasses(true); / ::SetUseClasses(false);
but it's bugged because player.Skin (and posssible something more) is desynced here.
Can't really figure out how to use this, it disables players to select their teams?

Quote from: Doom_Kill3R on Jul 21, 2018, 08:05 AMIf you use a 500ms timer at onPlayerSpawn to teleport the player, it works fine.

I'll have a try.
#32
Most of the time we don't want the player to teleport to his default spawn position, so we are changing player pos whenever he spawns, but this way isn't working properly for high ping players, they are teleported to where they should be before the default place, which means the player isn't spawning at the right place, so we need to use timer to correct it, but 1000ms timer still can't fix this properly, I want to ask for some better measure, thanks

If there's no other ways to solve this problem I hope we can have a function to disable/enable/change the default spawn position.
#33
General Discussion / Re: LOL What The ....?
Jul 20, 2018, 07:20 AM
viceland fans
#34
Thank you both for the information.
#36
Quote from: rww on Jun 09, 2018, 02:24 PMWith this, only driver can flip the car ;)

How about :)
if  ( player.VehicleSlot == 0 ) MessagePlayer( "[#ff1111]Error: [#ffffff]You must be a driver." , player );
#37


As the pic shows, if we are able to add a light point for the vehicle it would be more fun for some mission based servers.

EDIT: I noticed not only is it able to mark the vehicles, but also NPCs, so it is also a hop for some more servers!
#38
It is exciting to read the updates and news, nice job devs!
#39
I'm looking forward to a new future for my favorite old game.
#40
Quote from: MatheuS on May 12, 2018, 02:56 PM
Quote from: Rest on May 12, 2018, 12:59 AM
Quote from: MatheuS on May 11, 2018, 04:40 PMEu não entendi direito o que você quis dizer, mas é algo como isso: ???
Please keep it in English, I couldn't understand what you said without translator.

This is one way, but the vehicles are tped, too

Ops, sorry!

function Teleport( player, posx, posy, posz )
{
    if ( player.IsSpawned )
    {
        if ( player.Vehicle ) player.Pos = player.Pos, player.Pos = Vector( posx, posy, posz );
        else {
                   player.Pos = Vector( posx, posy, posz );
        }
    }
}

I've tested and works fine for me

I tried this way from the very beginning since I faced this problem, but it doesn't work, just now I've tested on my server again, it did not work perfectly, still..
#41
Quote from: MatheuS on May 11, 2018, 04:40 PMEu não entendi direito o que você quis dizer, mas é algo como isso: ???
Please keep it in English, I couldn't understand what you said without translator.

This is one way, but the vehicles are tped, too
#42
About some months ago, some people including me were working on a new server called Rob The Vehicles, at the beginning there's a very terrible bug that whenever server teleported players in vehicles, it ejects players in vehicles or sometimes the drivers are even kicked, we were confused about this, soon it was SahiL who came up with this idea and our server is now using this function to teleport players, no matter you're in vehicles or not, you can teleport to the place. Now I'm going to share the codes with you.

1 -> Place a vehicle at a place where nobody could be able to enter it, this vehicle is only used to "eject" players, remember you have got ID of the vehicle.

2 -> Paste the following function in your script, remember that you have to change the ID_OF_THE_SPECIAL_VEHICLE to the ID you created.
function Teleport( player, posx, posy, posz )
{
    if ( player.IsSpawned )
    {
        if ( player.Vehicle ) player.Vehicle = FindVehicle( ID_OF_THE_SPECIAL_VEHICLE );
        player.Pos = Vector( posx, posy, posz );
    }
}

3 -> Use this function above whenever you need to teleport players, here is a drowning function:
function Drown( player, reason )
{
        Message( "Admin server drowned [ " + player.Name + " ] reason:[ " + reason + " ]." );
Teleport( player, -376.6, 47.8846, 10.7041 ); //teleporting the player
}

#43
Quote from: vitogta on Mar 02, 2018, 10:15 AMYou can do it via creating marker for Player.UniqueWorld but using that keep in mind you are limited of server resources since there is only 100 markers per whole server.

Bad news, it seems that I should give up this idea, thanks for the note
#44
Is it possible to limit the range of where a marker should show the especial player(s), I mean, if a player moves close to some place, a marker will be shown only to this player(also had shown to the player(s) in the area already)

I'm going to make a park car command so that players could place their car at many of those single places, so I need to use marker to show where is a place to park at. Is it possible?
#45
Snippet Showroom / car hijack snippet
Mar 01, 2018, 05:16 AM
I'm trying to add that hijack feature to 0.4, here is the code.

LOC: onScriptLoad
EnteringVehicle <- array( 100, -1 );
Carjack_J <- BindKey( true, 0x4A, 0, 0 );

LOC: onPlayerEnteringVehicle(player, vehicle, ...)
if ( EnteringVehicle[ player.ID ] != -1 ) return 1;
EnteringVehicle[ player.ID ] = vehicle.ID;

LOC: onPlayerEnterVehicle(player, vehicle, ...)
EnteringVehicle[ player.ID ] = -1;

LOC: onKeyDown(player, key)
if ( key == Carjack_J )  //
{
if ( EnteringVehicle[ player.ID ] != -1 )
{
local veh = FindVehicle( EnteringVehicle[ player.ID ] );
if ( veh )
{
if ( veh.Driver && veh.Driver.ID != player.ID ) PrivMessage( veh.Driver, player.Name + " hijacked your vehicle!" );
player.PutInVehicleSlot( veh, 0 );
    EnteringVehicle[ player.ID ] = -1;
}
}
       }
Press J when you are entering vehicle as a passenger.
If you have a better idea or something, reply here so that i can improve it. :)