Vice City: Multiplayer

Server Development => Scripting and Server Management => Script and Content Requests => Topic started by: MEGAMIND on Oct 07, 2018, 06:25 PM

Title: Drift Counter
Post by: MEGAMIND on Oct 07, 2018, 06:25 PM
Hello everyone, can anyone make a drift counter?
Like samp + when a drift reaches to a specific drift score so an event happens to a car like if drift score reaches to 500 then car color changes..
Ty
Title: Re: Drift Counter
Post by: MatheuS on Oct 07, 2018, 09:27 PM
You could do this by calculating how long the player is pressed the space bar and the speed of the vehicle
Title: Re: Drift Counter
Post by: MEGAMIND on Oct 08, 2018, 01:38 AM
Quote from: Takanaue on Oct 07, 2018, 09:27 PMYou could do this by calculating how long the player is pressed the space bar and the speed of the vehicle
"Custom Content Releases", i guess thats the reason we ask here?+ y would we need to press spacebar? I already made drift handling using vehicle.sethandlingdata, so when the player drifts we should get the drift score counter

something like this https://pastebin.com/5zAWxiAS
Title: Re: Drift Counter
Post by: MEGAMIND on Oct 09, 2018, 08:45 AM
Bump
Title: Re: Drift Counter
Post by: MEGAMIND on Oct 09, 2018, 01:10 PM
Bump
Title: Re: Drift Counter
Post by: Sebastian on Oct 09, 2018, 08:27 PM
Just try to convert it. Shouldn't be too hard.
Title: Re: Drift Counter
Post by: MEGAMIND on Oct 10, 2018, 02:17 AM
Tried i couldnt thats y im asking
Title: Re: Drift Counter
Post by: MEGAMIND on Oct 11, 2018, 03:28 PM
bump
Title: Re: Drift Counter
Post by: DizzasTeR on Oct 12, 2018, 05:13 AM
Stop bumping this topic, nobody is sitting here for you to get your personal requests completed, you have posted your request, its up to the community if someone wants to sit down and volunteer write the script for you, you don't have to keep bumping.

On the other side why don't you try doing something yourself, pretty sure its hard because this isn't something that you can copy from a server.
Title: Re: Drift Counter
Post by: MEGAMIND on Oct 12, 2018, 06:27 AM
Quote from: Doom_Kill3R on Oct 12, 2018, 05:13 AMStop bumping this topic, nobody is sitting here for you to get your personal requests completed, you have posted your request, its up to the community if someone wants to sit down and volunteer write the script for you, you don't have to keep bumping.

On the other side why don't you try doing something yourself, pretty sure its hard because this isn't something that you can copy from a server.

k i wont bump again as ik know one has experienced this thing, +  i have tried this thing my self didnt worked well + no server in the histroy of vcmp has made drift system except mine for changing handling lines via my mod on gta inside

the rest is left drift points so i think i wont be needing them now.... maybe later i will.
Title: Re: Drift Counter
Post by: =RK=MarineForce on Oct 21, 2018, 06:05 PM
MEGAMIND, i got idea for you.. -sorry bad ingles -

When Player Move in car, like in 15 speed pos.X.Y.Z  it will count it.

Example:
Function OnPlayerMove(player.X,Y,Z)
{
if(player.IsDriving) MessagePlayer(" Failed",player);
if(player.Move) MessagePlayer(" Nice ",player);
else{
///add some new timers etc
}
}

:( sry i can't help u but i try to help u but can't :P
Title: Re: Drift Counter
Post by: MEGAMIND on Oct 21, 2018, 07:25 PM
Quote from: =RK=MarineForce on Oct 21, 2018, 06:05 PMMEGAMIND, i got idea for you.. -sorry bad ingles -

When Player Move in car, like in 15 speed pos.X.Y.Z  it will count it.

Example:
Function OnPlayerMove(player.X,Y,Z)
{
if(player.IsDriving) MessagePlayer(" Failed",player);
if(player.Move) MessagePlayer(" Nice ",player);
else{
///add some new timers etc
}
}

:( sry i can't help u but i try to help u but can't :P
-_-
Title: Re: Drift Counter
Post by: umar4911 on Oct 22, 2018, 12:18 PM
Go through the GetHandlingData, you might come up with a solution.
Title: Re: Drift Counter
Post by: MEGAMIND on Oct 22, 2018, 02:53 PM
Quote from: umar4911 on Oct 22, 2018, 12:18 PMGo through the GetHandlingData, you might come up with a solution.
My server already contains my every handling mod i created, dtift counter is something else, sort of a gui counter which counts for a vehicle slide , its easy to acheive in samp but not in vcmp so far
Title: Re: Drift Counter
Post by: umar4911 on Oct 22, 2018, 03:46 PM
Quote from: MEGAMIND on Oct 22, 2018, 02:53 PM
Quote from: umar4911 on Oct 22, 2018, 12:18 PMGo through the GetHandlingData, you might come up with a solution.
My server already contains my every handling mod i created, dtift counter is something else, sort of a gui counter which counts for a vehicle slide , its easy to acheive in samp but not in vcmp so far
you want server side or client side?
Title: Re: Drift Counter
Post by: MEGAMIND on Oct 22, 2018, 04:05 PM
Quote from: umar4911 on Oct 22, 2018, 03:46 PM
Quote from: MEGAMIND on Oct 22, 2018, 02:53 PM
Quote from: umar4911 on Oct 22, 2018, 12:18 PMGo through the GetHandlingData, you might come up with a solution.
My server already contains my every handling mod i created, dtift counter is something else, sort of a gui counter which counts for a vehicle slide , its easy to acheive in samp but not in vcmp so far
you want server side or client side?
the way it gets easier but ill prefer clientside
Title: Re: Drift Counter
Post by: [SC]Spartan on Oct 22, 2018, 06:44 PM
Are not you tired of writing the new features of your server? Do not you realize that your server is almost never online and nobody plays it? No offense
Title: Re: Drift Counter
Post by: MEGAMIND on Oct 22, 2018, 07:16 PM
Quote from: [SC]Spartan on Oct 22, 2018, 06:44 PMAre not you tired of writing the new features of your server? Do not you realize that your server is almost never online and nobody plays it? No offense

No one plays it? Yea right i get nearly a play count of almost 20 plrs in a day so yea its still better, and a heavy update is soon coming up so u better mind ur own work
Title: Re: Drift Counter
Post by: umar4911 on Oct 23, 2018, 01:12 AM
Quote from: MEGAMIND on Oct 22, 2018, 04:05 PM
Quote from: umar4911 on Oct 22, 2018, 03:46 PM
Quote from: MEGAMIND on Oct 22, 2018, 02:53 PM
Quote from: umar4911 on Oct 22, 2018, 12:18 PMGo through the GetHandlingData, you might come up with a solution.
My server already contains my every handling mod i created, dtift counter is something else, sort of a gui counter which counts for a vehicle slide , its easy to acheive in samp but not in vcmp so far
you want server side or client side?
the way it gets easier but ill prefer clientside
sp server side's complete? Means you calculated the drift distance and the reward?
Title: Re: Drift Counter
Post by: KingOfVC on Oct 23, 2018, 01:53 AM
Quote from: MEGAMIND on Oct 22, 2018, 07:16 PMi get nearly a play count of almost 20 plrs in a day

hmm k
http://thijn.minelord.com/stats/vcmp/stats.php?ip=182.185.41.237&port=5192
Title: Re: Drift Counter
Post by: MEGAMIND on Oct 23, 2018, 03:13 AM
Quote from: KingOfVC on Oct 23, 2018, 01:53 AM
Quote from: MEGAMIND on Oct 22, 2018, 07:16 PMi get nearly a play count of almost 20 plrs in a day

hmm k
http://thijn.minelord.com/stats/vcmp/stats.php?ip=182.185.41.237&port=5192
Lel my ip changes daily so u cant get it lel, btw onto topic stop messing arround
Title: Re: Drift Counter
Post by: MEGAMIND on Oct 23, 2018, 03:15 AM
Quote from: umar4911 on Oct 23, 2018, 01:12 AM
Quote from: MEGAMIND on Oct 22, 2018, 04:05 PM
Quote from: umar4911 on Oct 22, 2018, 03:46 PM
Quote from: MEGAMIND on Oct 22, 2018, 02:53 PM
Quote from: umar4911 on Oct 22, 2018, 12:18 PMGo through the GetHandlingData, you might come up with a solution.
My server already contains my every handling mod i created, dtift counter is something else, sort of a gui counter which counts for a vehicle slide , its easy to acheive in samp but not in vcmp so far
you want server side or client side?
the way it gets easier but ill prefer clientside
sp server side's complete? Means you calculated the drift distance and the reward?
nope havent just made it working properly drifting via handling
Title: Re: Drift Counter
Post by: Mötley on Oct 23, 2018, 05:23 AM
I suppose I could write a drift counter if I had an accurate vehicle angle script as I can calculate: North, East, South, West, Ne, Nw, Sw, Se.

But to be honest  surface.dat multipliers, functions and constants should be added to the wiki. Liberty Unleashed has it and a drift counter could be created easily off there library.

An example of creating a random poly around a player http://forum.liberty-unleashed.co.uk/index.php/topic,2703.msg15477.html#msg15477.

With calculating the vehicle's facing angle, If it's facing North but moving east for two seconds begin a drift counter from there, or whatever is best to prevent random drift messages. I don't think it's wise to script on the event onPlayerMove as it's called way to many times.

Should be easy but time consuming
Title: Re: Drift Counter
Post by: MEGAMIND on Oct 23, 2018, 05:57 AM
Quote from: Motley on Oct 23, 2018, 05:23 AMI suppose I could write a drift counter if I had an accurate vehicle angle script as I can calculate: North, East, South, West, Ne, Nw, Sw, Se.

But to be honest  surface.dat multipliers, functions and constants should be added to the wiki. Liberty Unleashed has it and a drift counter could be created easily off there library.

An example of creating a random poly around a player http://forum.liberty-unleashed.co.uk/index.php/topic,2703.msg15477.html#msg15477.

With calculating the vehicle's facing angle, If it's facing North but moving east for two seconds begin a drift counter from there, or whatever is best to prevent random drift messages. I don't think it's wise to script on the event onPlayerMove as it's called way to many times.

Should be easy but time consuming

Appreciated but it is done ill be showing off a video in video/screenshots 8)