[Plugin] YSF - kurta999's version

Quote:
Originally Posted by Scottas
Посмотреть сообщение
There are SetDisabledKeys and GetDisabledKeys functions. Maybe fake player key press is also possible? So it would be possible to tell player to enter vehicle or do any other action from server.
possible or not?
Reply

Yes, it is
Reply

After switching on YSF_ToggleOnServerMessage(1);

[13:34:02] [debug] AMX backtrace:
[13:34:03] [debug] Run time error 7: "Stack underflow"
[13:34:03] [debug] Stack pointer (STK) is 0x113E564, stack top (STP) is 0x113E560
Reply

OnServerMessage never worked perfectly, so that is the reason why it is disabled by default.
Reply

OnPlayerClientGameInit does this work fine?
Profiler shows a great delay.
Reply

For me perfectly.
Reply

You sure that this native is working?
pawn Код:
IsPlayerControllable
I am freezing player in the spawn and it says that player has control over his character.
Reply

Hello all, i'm currently developing a script for underwater diving and such.

@ kurta999, would it be possible to manipulate the o2 ( oxygen level ) when underwater, is that something that is possible to get the memory adresse's and add it to the plugin? ) 0.o

Thanks in advance.
PS: BTW Awesome work on this last update !
Reply

Quote:
Originally Posted by kernel32
Посмотреть сообщение
Yes, I would like, it saves a lot of traffic.
And when will the release?
Now I don't have much time because I'm working, but I hope that soon. Now I have R19-2 as stable, I only need to add this function and release it. In R19-2 changes are very poor, yet only HidePlayerInServerQuery has renamed to SetPlayerNameInQuery.

Quote:
Originally Posted by Riddick94
Посмотреть сообщение
Is there going to be "PlayerTextDrawSetStringf" native?

SendClientMessagef is already there, what's the issue to have the one for TextDraws?
I had some complication with that function, now I don't remember exactly what.

Quote:
Originally Posted by CharlieSanchez
Посмотреть сообщение
Hello all, i'm currently developing a script for underwater diving and such.

@ kurta999, would it be possible to manipulate the o2 ( oxygen level ) when underwater, is that something that is possible to get the memory adresse's and add it to the plugin? ) 0.o

Thanks in advance.
PS: BTW Awesome work on this last update !
No, it's impossible without client side mod.
Reply

hello Guys, please can you explain for me what does this Words mean please
Код:
[2017 | 17:18:00] ARRAY_ConsoleCommands: 8196920
Reply

Nothing its just a debug message
Reply

Quote:
Originally Posted by kurta999
Посмотреть сообщение
Nothing its just a debug message
Then why not remove it?
In the code there is a lot of garbage, unnecessary comments, do you like working with such code?
Reply

Quote:
Originally Posted by kernel32
Посмотреть сообщение
Then why not remove it?
In the code there is a lot of garbage, unnecessary comments, do you like working with such code?
TIME, TIME, TIME.... I've learn programming C++ with this plugins, so it's ovbious that some parts are messy, but works. I'm not going to rewrite the complete plugin, beucase I have a life outside of computer. Sometime my computer is switched off for 4-5 days

Quote:
Originally Posted by Y_Less
Посмотреть сообщение
What is the license on this code?
MPL

https://github.com/kurta999/YSF/tree/YSF_/src
https://github.com/kurta999/YSF/blob/YSF_/src/Hooks.h

AFAIK same what you started to use.
Reply

Quote:
Originally Posted by iLearner
Посмотреть сообщение
https://usercontent.irccloud-cdn.com...CrLL/image.png

My server crashed after round about 1 hour, after i started using YSF.

Any idea?
I've same error.

Also:

pawn Код:
[sampgdk:warning] Index mismatch for OnOutcomeScmEvent (-10011 != -10009)
 [sampgdk:warning] Index mismatch for OnVehicleDamageStatusUpdate (-10057 != -10055)
[14:20:33] [sampgdk:warning] Index mismatch for OnVehicleDamageStatusUpdate (-10057 != -10055)
[14:20:34] [sampgdk:warning] Index mismatch for OnVehicleDamageStatusUpdate (-10057 != -10055)
[14:20:35] [sampgdk:warning] Index mismatch for OnPlayerPauseStateChange (-10037 != -10035)
[14:20:35] [sampgdk:warning] Index mismatch for OnPlayerPauseStateChange (-10037 != -10035)
[14:20:37] [sampgdk:warning] Index mismatch for OnVehicleDamageStatusUpdate (-10057 != -10055)
[14:20:37] [sampgdk:warning] Index mismatch for OnVehicleDamageStatusUpdate (-10057 != -10055)
[14:20:37] [sampgdk:warning] Index mismatch for OnVehicleDamageStatusUpdate (-10057 != -10055)
[14:20:37] [sampgdk:warning] Index mismatch for OnVehicleDamageStatusUpdate (-10057 != -10055)
[14:20:37] [sampgdk:warning] Index mismatch for OnVehicleDamageStatusUpdate (-10057 != -10055)
[14:20:37]
Any idea Kurta?

Thanks.
Reply

Use the latest version, ysf doesnt use samgsk anymore
Reply

When i use lastest version. Crash.

pawn Код:
[04:02:45] [debug] Server crashed due to an unknown error
[04:02:45] [debug] Native backtrace:
[04:02:45] [debug] #0 f66839f0 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[04:02:45] [debug] #1 f667ca62 in _ZN11CrashDetect20PrintNativeBacktraceERSoPv () from plugins/crashdetect.so
[04:02:45] [debug] #2 f667d764 in _ZN11CrashDetect20PrintNativeBacktraceEPv () from plugins/crashdetect.so
[04:02:45] [debug] #3 f667f6b4 in _ZN11CrashDetect11OnExceptionEPv () from plugins/crashdetect.so
[04:02:45] [debug] #4 f668331d in ?? () from plugins/crashdetect.so
[04:02:45] [debug] #5 f77bd420 in ?? ()
[04:02:45] [debug] #6 f77bd440 in ?? ()
[04:02:45] [debug] #7 f74a9457 in gsignal () from /lib32/libc.so.6
[04:02:45] [debug] #8 f74ac7c3 in abort () from /lib32/libc.so.6
[04:02:45] [debug] #9 f76dfd6f in _ZN9__gnu_cxx27__verbose_terminate_handlerEv () from /usr/lib32/libstdc++.so.6
[04:02:45] [debug] #10 f76dd924 in ?? () from /usr/lib32/libstdc++.so.6
[04:02:45] [debug] #11 f76dd99d in ?? () from /usr/lib32/libstdc++.so.6
[04:02:45] [debug] #12 f76ddcb6 in __cxa_rethrow () from /usr/lib32/libstdc++.so.6
[04:02:45] [debug] #13 f608e0cd in _ZNSt10_HashtableItSt4pairIKtNSt6chrono10time_pointINS2_3_V212steady_clockENS2_8durationIxSt5ratioILx1ELx1000000000EEEEEEESaISB_ENSt8__detail10_Select1stESt8equal_toItESt4hashItENSD_18_Mod_range_hashingENSD_20_Default_ranged_hashENSD_20_Prime_rehash_policyENSD_17_Hashtable_traitsILb0ELb0ELb1EEEE21_M_insert_unique_nodeEjjPNSD_10_Hash_nodeISB_Lb0EEE () from plugins/YSF.so
[04:02:45] [debug] #14 f608bfd9 in _ZN7CServer16OnPlayerStreamInEtt () from plugins/YSF.so
[04:02:45] [debug] #15 f6091c7a in _Z32HOOK_CGameMode__OnPlayerStreamInP9CGameModeii () from plugins/YSF.so
[04:02:45] [debug] #16 080cafb4 in ?? () from ./samp03svr
[04:02:45] [debug] #17 080cbb19 in ?? () from ./samp03svr
[04:02:45] [debug] #18 080cbe2f in ?? () from ./samp03svr
[04:02:45] [debug] #19 080cd5e4 in ?? () from ./samp03svr
[04:02:45] [debug] #20 080ac97c in ?? () from ./samp03svr
[04:02:45] [debug] #21 080aed90 in ?? () from ./samp03svr
[04:02:45] [debug] #22 080aef02 in ?? () from ./samp03svr
[04:02:45] [debug] #23 080aa13a in ?? () from ./samp03svr
[04:02:45] [debug] #24 f7494ad3 in __libc_start_main () from /lib32/libc.so.6
[04:02:45] [debug] #25 0804b4e1 in ?? () from ./samp03svr

----------
Loaded log file: "server_log.txt".
I have to use an old version of the YSF so it will not crash.


-...


In this moment i use this version:

Quote:
Originally Posted by kurta999
Посмотреть сообщение
@iLearner:


Try this version. Or this:

For me everything is fine.
Reply

Don't use that That's an unstable shit, use the one from the main page. That's totally stable. (r19)

I still don't have PC & internet at home where I live now, so it's a bit hard to test & release r19-2.
Reply

i suggest removing setplayerfakeping function, its being abused.
Reply

Quote:
Originally Posted by iLearner
Посмотреть сообщение
i suggest removing setplayerfakeping function, its being abused.
No...
Reply

Quote:
Originally Posted by iLearner
Посмотреть сообщение
i suggest removing setplayerfakeping function, its being abused.
How is abused? Nothing bad in this.
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)