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.

Messages - Decent_946
1
Scripting and Server Management / Re: Time, Weather and script fix
« on August 11th, 2017, 05:42 PM »
Error in the code is because you aren't defining the player in timer and in the function you've set extra arguments.

Use:
Code: [Select]
NewTimer ( "heal", 5000, 1, player.ID );

And change function to :
Code: [Select]
function heal(ID)
{
local player = FindPlayer (ID);

if (plr)
{

  Player.Health = 100.;
  MessagePlayer( "[#FFFF81]---> You have been healed !", player);

}
else return 0;





To set time, use this function

And to set server weather use SetWeather function
2
Scripting and Server Management / Re: Create Car Command
« on August 7th, 2017, 02:26 PM »
http://forum.vc-mp.org/?topic=1177.0 - Use this Snippet. It contains the command /addcar. You can use that command to addcar into the server.
3
Script and Content Requests / Re: System TOP
« on August 5th, 2017, 11:17 PM »
Quote from Cool on August 5th, 2017, 07:18 PM
looooooooooooooooooooool #RIP coding
Why don't you script him the code than ? Although his coding style is lengthy and this function won't work for the topic starter. but he has helped him by providing complete idea of how top ranks can be set.

Btw, @longhackmc , you could use SQL LIMIT function instead of the long way method.
4
Support / Re: need help
« on August 5th, 2017, 08:44 AM »
Quote from Adriano^ on August 5th, 2017, 03:43 AM
I found a topic and adapted it to a function, for example: for the drive garage door for mansion use RawHideMapObject (2548, -3576, -5397,149); // to remove the object ai just create it again and use a function to move it
As a player, you can not open/hide the garage gate. Only server developers can. Make a suggestion on the servers forum for this ability.
5
Servers / [0.4] Re: Rob the Vehicles
« on August 4th, 2017, 04:04 PM »
Quote from Rest on August 4th, 2017, 03:00 AM
We got our new forum:
http://rtv.vc-mp.co.uk/
Re-register ? Why didn't you transfer old forum's database. :/
6
Tutorials / [Guide] Re: Vehicle Handling Stats Explored
« on August 2nd, 2017, 03:14 PM »
Thats actually a cool guide. Much informative. Which solemnly proves you are a physics student :D
7
Support / Re: help
« on August 1st, 2017, 11:46 AM »
did you try running it as administrator ?
8
Scripting and Server Management / Re: Vehicles Cost Update Issue
« on July 29th, 2017, 04:41 PM »
you can simply execute the query on function onScriptLoad()

Code: [Select]
function onScriptLoad()
{
QuerySQL( Vehicles, "UPDATE Cost SET = '350000' WHERE Model = '191' " );
}


or you can update cost of any vehilce by /exec command. ( hope you have got that command )

use, /exec
Code: [Select]
QuerySQL( Vehicles, "UPDATE Cost SET = '350000' WHERE Model = '191' " );
9
Skin Showroom / Re: New Tommy Model
« on July 25th, 2017, 08:41 PM »
Quote from MEGAMIND on July 25th, 2017, 07:27 PM
Quote from MatheuS on July 25th, 2017, 05:02 PM
AHAHAHHAHHHAHAHAHAHA
Lol he can't even describe hows the sun he's cooked lol
Looks like tommy was wearing helmet while he was taking sun bath.
10
General Discussion / Re: How can I add custom things to my server?
« on July 23rd, 2017, 09:01 PM »
Check out these two boards in the image for custom content. ( http://i.imgur.com/wKNneGM.jpg )
Check this topic as well: how to add custom stuff by sebbyyy
11
Quote from NicusorN5 on July 23rd, 2017, 06:22 PM
It can be done using timers (can be laggy , and memory-consuming)
that's what i said. It can be done. But not already present in VC-MP.
12
Quote from SilviUDaciaLogan on July 22nd, 2017, 12:43 PM
Not speedometer.  Mileague. Example : 22.000km traveled.
Vcmp vehicles doesn't have got ' Mileague '  because there isn't petrol system to tell you that this vehicle will travel *dash* kilometeres in 1 litre of petrol. Although it can be made possible if you script fuel / petrol system.

If you want to know the distance you travelled since the time you entered the car till the time you exit, i guess, you can use DistanceFromPoint function. Just set you pos when entering the vehilcle and call this function on vehicle exit.
13
Snippet Showroom / Re: Real Speedometer!!
« on July 23rd, 2017, 04:54 PM »
Quote from SilviUDaciaLogan on July 23rd, 2017, 12:37 PM
I have a problem with CreateSprite. Help me, please!
CreateSprite function has been replaced by GUI Sprite system.

Use Doom Killers Speed-o-Meter instead.
Here: http://forum.vc-mp.org/?topic=4353
14
Tutorials / [tut] Re: Objects are constantly appearing/dissappearing
« on July 23rd, 2017, 07:34 AM »
I had experienced it for the 1st time after i installed VC visual enhancement mod by hanney at lw forum. And this issue has been discussed earlier in lw community and solved as well with to solution you've provided above.
15
Scripting and Server Management / Re: onPlayerKill is not working
« on March 19th, 2016, 09:40 AM »
Quote from Xmair on March 19th, 2016, 09:35 AM
@Decent_946 , ever viewed the wiki?
ofc, btw, atm i am too depressed cuz of my test. so that's why..
i 1st wanted to post that function but thought to give z axis also. ;) .