|
|
#1 |
|
Beta Tester
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2008
Location: 629
Posts: 13,310
Reputation: 1909
|
YUP - Y_Less's Update Peripherals - 0.3 What? This script uses the new OnPlayerUpdate to detect a range of changing player stats, possibly including being paused, losing health, buying weapons and more. 0.3 introduces a load of new features for script configuration, including what to do with people when they're detected as paused. This version includes callbacks for when players are both paused and expired. A paused player is one who is not ingame but has not been out the game too long. An expired player is one who has been paused for too long and needs dealing with, either automatically by YUP or manually. It also includes functions for use in other scripts to configure YUP pause settings and get information about players. Finally I found a major bug in the pause detection when you die, so I corrected that. For more information refer to the readme. How? To use:
Code:
filterscripts adminspec vactions yup When? This script only works on SA:MP versions 0.2x (and presumably higher). Where? Download Note that I had a more recent version but it seems to have vanished. Why? Although most of these features are already possibly with timers there is a delay between the event happening and the next timer call. This way you can detect events the moment the server knows about them and instantly propagate the information amongst all the running scripts. If you're wondering why I copied the weapon state code 13 times instead of using a loop it's for speed. Explicit code is slightly faster than loops, and in this case there will never be more or less than 13 slots, so writing a loop is pointless. Yes it would have been marginally easier to code but not a whole lot and it doesn't matter to you lot how easy it was to code anyway, you just get the pure speed benefits. Plus it means you can optimise the code very simply by removing chunks if, for example, you have no weapons from slot 4 on your server (although then you probably want to keep that to detect cheaters). Last edited by Y_Less; 15/08/2010 at 12:40 PM. |
|
|
|
|
|
#2 |
|
Little Clucker
![]() Join Date: Jan 2007
Posts: 16
Reputation: 0
|
Very good :P
Does it work on Linux? (GetTickCount) |
|
|
|
|
|
#3 |
|
Big Clucker
![]() ![]() Join Date: Jul 2008
Posts: 141
Reputation: 0
|
Sounds nice , will try when my servers upgraded
|
|
|
|
|
|
#4 |
|
Gangsta
![]() ![]() ![]() ![]() Join Date: Nov 2006
Posts: 584
Reputation: 3
|
great work Y_Less
|
|
|
|
|
|
#5 |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Apr 2007
Location: Norway
Posts: 3,561
Reputation: 129
|
Good job
|
|
|
|
|
|
#6 |
|
Little Clucker
![]() Join Date: Nov 2007
Posts: 13
Reputation: 0
|
WOW good man
but i can't test itwhere i can get 0.2x?
|
|
|
|
|
|
#7 |
|
Beta Tester
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2008
Location: 629
Posts: 13,310
Reputation: 1909
|
|
|
|
|
|
|
#8 | |
|
High-roller
![]() ![]() ![]() ![]() ![]() Join Date: Aug 2008
Posts: 3,820
Reputation: 13
|
Quote:
Good job
|
|
|
|
|
|
|
#9 |
|
Banned
![]() Join Date: Apr 2007
Location: Republic of Ireland
Posts: 4,307
Reputation: 350
|
Fastest release ever
. Good work Alex, this will come in very handy no doubht.
|
|
|
|
|
|
#10 |
|
Beta Tester
![]() ![]() ![]() ![]() ![]() Join Date: Jun 2008
Location: 629
Posts: 13,310
Reputation: 1909
|
OK, major update. Now does far more than detecting players who are alt-tabbed. It also gives instant access to all sorts of information the moment it changes.
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Y_Less's Code Generator | ziomal432 | Help Archive | 4 | 26/10/2010 09:50 AM |
| GTA SA MP new update?? | sjvt | General | 5 | 02/05/2010 08:27 PM |
| [HELP] How can i update my r4 to r5 ? | andershh | Help Archive | 6 | 23/04/2010 04:02 PM |
| Update from 0.2.x to 0.3? | djdanni | Server Support | 15 | 13/10/2009 06:58 PM |
| Y_Less's Vehicle/Checkpoint Streamer | Redfox2009 | Help Archive | 0 | 11/08/2009 03:12 PM |