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 - Decent_946

#1
Error in the code is because you aren't defining the player in timer and in the function you've set extra arguments.

Use: NewTimer ( "heal", 5000, 1, player.ID );
And change function to :
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
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
Aug 05, 2017, 10:17 PM
Quote from: Cool on Aug 05, 2017, 06:18 PMlooooooooooooooooooooool #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
Aug 05, 2017, 07:44 AM
Quote from: Adriano^ on Aug 05, 2017, 02:43 AMI 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 / Re: [0.4] Rob the Vehicles
Aug 04, 2017, 03:04 PM
Quote from: Rest on Aug 04, 2017, 02:00 AMWe got our new forum:
http://rtv.vc-mp.co.uk/
Re-register ? Why didn't you transfer old forum's database. :/
#6
Thats actually a cool guide. Much informative. Which solemnly proves you are a physics student :D
#7
Support / Re: help
Aug 01, 2017, 10:46 AM
did you try running it as administrator ?
#8
you can simply execute the query on function onScriptLoad()

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 QuerySQL( Vehicles, "UPDATE Cost SET = '350000' WHERE Model = '191' " );
#9
Skin Showroom / Re: New Tommy Model
Jul 25, 2017, 07:41 PM
Quote from: MEGAMIND on Jul 25, 2017, 06:27 PM
Quote from: MatheuS on Jul 25, 2017, 04:02 PM
Quote from: aXXo on Jul 25, 2017, 02:23 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
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 Jul 23, 2017, 05:22 PMIt 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 Jul 22, 2017, 11:43 AMNot 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!!
Jul 23, 2017, 03:54 PM
Quote from: SilviUDaciaLogan on Jul 23, 2017, 11:37 AMI 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
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
Well, Let me inform you that once LMS is over, it is turned off. When there are less than 2 players in LMs, it auto-matically stops. If you want a timer which stops LMS after 5 mins when started , you'll need to make some changes.
1st one, to add a timer in StartLMS() function. 2nd thing, you'll need to make a new function in order to stop LMS because it'll already be having some players. like,

function forcelmsend()  // this function is to be put in [i]_LMS array[/i]
{

 foreach( ID in players )
{
 local plr = FindPlayer( ID );
 if ( plr ) plr.Pos = iData[ plr.ID ];
}

}
   State = "OFF";
   Players.clear();
   Alive = 0;
   Message( "[#FFFFFF]* LMS was aborted due to lack of participants!" );
}
then call the function in startlms function as
NewTimer( "_LMS.forcelmsend", 500000, 1 );
I'm unsure whether the above function i posted will work or not. Made this as an example.

EDIT: Don't forget to delete the time when LMS ends before 5 mins. Timer delete function