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: 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 );
#32


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!
#33
It is exciting to read the updates and news, nice job devs!
#34
I'm looking forward to a new future for my favorite old game.
#35
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..
#36
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
#37
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
}

#38
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
#39
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?
#40
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. :)
#41
Quote from: Mahmoud Tornado on Aug 26, 2017, 05:41 PMi must edit on it to and add some sa-mp logos ?

http://forum.vc-mp.org/?topic=1209.0
This snippet is with vcmp logos, but still need you to do some edits.
#42
This snippet is released, here is the link http://forum.vc-mp.org/?topic=21.0
But since createtextdraw function is removed in the recent update, you`ll need to edit something to show the messages
#43
Snippet Showroom / Re: Spawn sound
Aug 25, 2017, 09:21 AM
I wonder if it is also the sound playing at some race event as of "Go" in single play.
#44
Support / Re: About onPlayerAwayChange.
Aug 25, 2017, 12:27 AM
add a condition: player.IsSpawned
#45
Clans and Families / Re: FM . Full Metal.
Aug 19, 2017, 12:45 PM
nice server :)