MEGAMIND

  • Hero Member
  • Developer of "Web-Net" search engine
  • Posts: 640
Drift Counter
«  »
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

MatheuS

  • Wiki Contributor
  • LBR | Co-Leader & BRL and XS Evolution Developer
  • Posts: 414
Re: Drift Counter
« Reply #1,  »
You could do this by calculating how long the player is pressed the space bar and the speed of the vehicle
Youtube Channel: www.youtube.com/TakanaueVCMP
Code: [Select]
if( !sucess ) tryAgain();

MEGAMIND

  • Hero Member
  • Developer of "Web-Net" search engine
  • Posts: 640
Re: Drift Counter
« Reply #2,  »Last edited
Quote from Takanaue on October 7th, 10:27 PM
You 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

Sebastian

  • VC:MP Beta Tester
  • Something like this: hga hga hga
  • Posts: 841
Re: Drift Counter
« Reply #5,  »
Just try to convert it. Shouldn't be too hard.

MEGAMIND

  • Hero Member
  • Developer of "Web-Net" search engine
  • Posts: 640
Re: Drift Counter
« Reply #6,  »
Tried i couldnt thats y im asking

Doom_Kill3R

  • VC:MP Beta Tester
  • Infinite loops defy infinity by overflowing memory
  • Posts: 1,060
Re: Drift Counter
« Reply #8,  »
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.

MEGAMIND

  • Hero Member
  • Developer of "Web-Net" search engine
  • Posts: 640
Re: Drift Counter
« Reply #9,  »
Quote from Doom_Kill3R on October 12th, 06: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.
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.

=RK=MarineForce

  • Sr. Member
  • why noise ??? Re 100%
  • Posts: 386
Re: Drift Counter
« Reply #10,  »
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

MEGAMIND

  • Hero Member
  • Developer of "Web-Net" search engine
  • Posts: 640
Re: Drift Counter
« Reply #11,  »
Quote from =RK=MarineForce Yesterday at 07: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
-_-

umar4911

  • Sr. Member
  • Creating own server!
  • Posts: 358
Re: Drift Counter
« Reply #12,  »
Go through the GetHandlingData, you might come up with a solution.
I am gamer, programmer and hacker. Try to find me!
xD

MEGAMIND

  • Hero Member
  • Developer of "Web-Net" search engine
  • Posts: 640
Re: Drift Counter
« Reply #13,  »
Quote from umar4911 Today at 01:18 PM
Go 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

umar4911

  • Sr. Member
  • Creating own server!
  • Posts: 358
Re: Drift Counter
« Reply #14,  »
Quote from MEGAMIND Today at 03:53 PM
Quote from umar4911 Today at 01:18 PM
Go 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?
I am gamer, programmer and hacker. Try to find me!
xD