SA-MP Forums Archive
Drift - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Drift (/showthread.php?tid=457791)



Drift - Kudoz - 13.08.2013

Hello. I have a drift point system which gives me score/cash when I drift. The problem is when players use helicopter and goes kind of sideways, the earn tons of points! How can I limit the counter to just a few vehicles?
Example: Elegy, picador, bullet etc, good drift cars..


Re: Drift - Misiur - 13.08.2013

Show your drifting script. Check there if vehicle model is on whitelist/isn't on blacklist of vehicles and then award points for drifts


Re: Drift - JimmyCh - 13.08.2013

What you can do is:
pawn Код:
new model = GetVehicleModel(vehicleid); // just easier

//Okay so, now when you're drifting, you will put this, this will exclude the maverick

if(model != 487)
{
// the drift thing here, this will only give score and cash if the vehicle is different than ID 487, you will surely add others too, put them all near this
}