|
|
#1 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2009
Location: The Polish guy in The Netherlands
Posts: 2,295
Reputation: 281
|
View This topic in: / Bekijk deze topic in het: / Oglądnij ten temat w języku: English/Engels/Angielskim Dutch/Nederlands/Holenderskim Polish/Pools/Polskim More translations are welcome! Meer vertalingen zijn welkom! Większa ilość tłumaczeń jest mile widziana! In Development/In ontwikkeling/W budowie: None/Geen/Żadna First of all I want to thank people that made this possible (sorry if I forgot somebody, lemme know): Pghpunkid Incognito Kyosaur RyDeR` Zeex Rock_Ro Nero_3D Special thanks go to (for help, etc): Kyosaur RyDeR` Okay now, you are asking: "What does this plugin do?". Well let's see this: http://www.youtube.com/watch?v=f9AtUwlNOFk That's drifting (and one of my favorite games which inspired me to write this plugin). Here is a video that is representing this plugin: http://www.youtube.com/watch?v=wNNcMC-R8So And now: why not in PAWN? - lemme explain: PAWN is a scripting language made for small scripts (not the huge GM's like for sa-mp, but it can handle it easily )and if you do many calculations on 500 players it will just do the calculations. While it's doing the calculations pawn cannot execute any other functions, so your gamemode will be 'paused' till the operation is done. Now what this plugin does: it does all the needed calculations in the background for pawn and calls 3 callbacks to efficiently do everything. Okay where can I download it? The lastest source, compiled dll/so, includes are part of the "Gamer_Z's Project Bundle" and can be obtained from here: http://gpb.googlecode.com/ Known problems/bugs: - None The functions explained: Note: Please see the Wiki for more information pawn Code:
pawn Code:
pawn Code:
pawn Code:
![]() pawn Code:
pawn Code:
pawn Code:
Also with MaxHealthLoose you can set the maximum amount of health to loose (so you can allow drift that 'scratch') pawn Code:
pawn Code:
pawn Code:
value is the amount of drift points gained with the last short drift move combo increases until OnPlayerDriftEnd. flagid is the closest flag within 10 meters distance is the distance to the closest flag, speed is the speed in km/h. pawn Code:
DRIFT_REASON_TIME_EXPIRE - the drift has ended because the player didn't start a new drift within the delay period. DRIFT_REASON_CAR_DAMAGED - the drift has been ended because the vehicle health changed. DRIFT_REASON_PLAYER_EXIT_VEHICLE - the drift has been ended because the player exited his vehicle pawn Code:
pawn Code:
pawn Code:
pawn Code:
pawn Code:
pawn Code:
pawn Code:
Added in R19 pawn Code:
This native is used internally, it is not recommended to use this unless you know what you are doing. Please refferer to the include to see where it is used and to the source to see what it does. pawn Code:
Enables/disables the whole plugin, can be used at any time. pawn Code:
pawn Code:
pawn Code:
Have fun, any questions? Post here. Last edited by Gamer_Z; 11/05/2013 at 01:45 AM. Reason: Update |
|
|
|
|
|
#2 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Sep 2010
Posts: 349
Reputation: 9
|
O M G nice plugin, i must try this!
|
|
|
|
|
|
#3 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Feb 2009
Location: Belgium
Posts: 3,075
Reputation: 572
|
Nice to see it released. Good job!
|
|
|
|
|
|
#4 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2009
Location: The Polish guy in The Netherlands
Posts: 2,295
Reputation: 281
|
|
|
|
|
|
|
#5 |
|
Huge Clucker
Join Date: Mar 2011
Location: Los Santos
Posts: 281
Reputation: 1
|
Lol.
A Drift Points Plugin, i was planning to release the best drift counter but this...ruin all my plans ![]() Release aborted ![]() Good Job, when i install San Andreas Again ( if i install ) i will test to see how it works xD EDIT: pawn Code:
|
|
|
|
|
|
#6 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Aug 2009
Posts: 322
Reputation: 0
|
Sweeeeeeeet!
|
|
|
|
|
|
#7 | |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2009
Location: The Polish guy in The Netherlands
Posts: 2,295
Reputation: 281
|
Quote:
![]() and thanks for the function! I will port it to the plugin to make the drif counter less buggy
|
|
|
|
|
|
|
#8 |
|
Huge Clucker
![]() ![]() ![]() Join Date: Sep 2010
Posts: 349
Reputation: 9
|
Plugin cant start:
Last edited by MicroD; 15/09/2011 at 04:39 PM. |
|
|
|
|
|
#9 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2009
Location: The Polish guy in The Netherlands
Posts: 2,295
Reputation: 281
|
download the dll's from the web and place it where you have samp-server.exe.
http://www.dll-files.com/dllindex/dl...shtml?msvcp100 OR install VC2010 |
|
|
|
|
|
#10 |
|
Banned
![]() Join Date: May 2011
Location: In Tha Hood
Posts: 34
Reputation: 0
|
It seems like you have no idea about ticks, you should read the first answer here: http://superuser.com/questions/10118...-is-a-cpu-tick
And it is not correctly that it does calculations in background. You should also implement something like Y_Less's 'foreach' so that it cache players that are in vehicle so you don't need to loop every player, just ones that are DRIVING a car. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [FilterScript] [FS]۞.:DRIFT Points Counter .:OWNAGE EDITION:. ۞ | abhinavdabral | Filterscripts | 149 | 10/01/2013 03:50 AM |
| Drift counter! | Natrens | Help Archive | 7 | 06/08/2011 01:43 PM |
| Drift map + points need help | speediekiller2 | Help Archive | 3 | 29/08/2010 11:43 AM |
| Drift Counter | XxerykxX | Help Archive | 3 | 12/07/2010 12:56 PM |