SA-MP Forums Archive
[Plugin] YSF - kurta999's version - 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: Plugin Development (https://sampforum.blast.hk/forumdisplay.php?fid=18)
+--- Thread: [Plugin] YSF - kurta999's version (/showthread.php?tid=513499)



Re: YSF - kurta999's version - iLearner - 18.07.2017

I came to know that the plugin that provides fake players has a default ping for all bots; which is very huge number (10m+), users set their ping to normal using this function.

PS: How about you add function IsTimerActive(timer) ?


Re: YSF - kurta999's version - kurta999 - 19.07.2017

I was not able to add that before, try to use dan's timerfix plugin. If i good remember,he added that function into his plugin


Re: YSF - kurta999's version - AbyssMorgan - 19.07.2017

Quote:
Originally Posted by iLearner
Посмотреть сообщение
I came to know that the plugin that provides fake players has a default ping for all bots; which is very huge number (10m+), users set their ping to normal using this function.

PS: How about you add function IsTimerActive(timer) ?
There is no such thing as abuse of the function.
NPC ping is 4294967295 so what's a problem i need mask this shit number ?
Ziggi has been informed already and will probably change the NPC ping from -1 (default samp) to 0.

ping 0 = bot
http://imgur.com/LniBwXm


Re: YSF - kurta999's version - AbyssMorgan - 26.07.2017

Can you explain how it works ?

PHP код:
native SetExclusiveBroadcast(toggle);
native BroadcastToPlayer(playeridtoggle=1);
native SpawnForWorld(playerid);
native BroadcastDeath(playerid);
native execute(const command[], saveoutput=0index=0); 



Re: YSF - kurta999's version - renatog - 26.07.2017

Explanation for SetExclusiveBroadcast and BroadcastToPlayer:
https://github.com/kurta999/YSF/blob...amples.pwn#L59


Re: YSF - kurta999's version - ThomasTailor93 - 30.07.2017

Is there any chance that YSF CAN disable HUD parts?


Re: YSF - kurta999's version - kurta999 - 30.07.2017

No..


Re: YSF - kurta999's version - ThomasTailor93 - 30.07.2017

Quote:
Originally Posted by kurta999
Посмотреть сообщение
No..
Ok, I saw that there are many server-side and client-side plugins who can, but they are all abandoned..


Re: YSF - kurta999's version - AbyssMorgan - 31.07.2017

Is possible to hide/show player in TAB list ?


Re: YSF - kurta999's version - kurta999 - 31.07.2017

Its already done. But it will discomnect the given player for you


Re: YSF - kurta999's version - AbyssMorgan - 31.07.2017

Quote:
Originally Posted by kurta999
Посмотреть сообщение
Its already done. But it will discomnect the given player for you
I know RemovePlayerForPlayer, but i need hide only nick in TAB


Re: YSF - kurta999's version - AbyssMorgan - 31.07.2017

When i set player name for player i see only ID, but still exist in list.
http://i.imgur.com/bEBvpBs.png


Re: YSF - kurta999's version - kurta999 - 31.07.2017

Quote:
Originally Posted by AbyssMorgan
Посмотреть сообщение
I know RemovePlayerForPlayer, but i need hide only nick in TAB
That's not possible.


Re: YSF - kurta999's version - Xeon™ - 31.07.2017

Quote:
Originally Posted by kurta999
Посмотреть сообщение
That's not possible.
it's possible.

i've seen it on a server long time ago, http://github.com/LVPlayground/playground

they can hide players (admins) from tab and from map also nametags


Re: YSF - kurta999's version - kurta999 - 31.07.2017

Quote:
Originally Posted by AbyssMorgan
Посмотреть сообщение
When i set player name for player i see only ID, but still exist in list.
http://i.imgur.com/bEBvpBs.png
What version are you using? I haven't released R19-2 yet officailly.


Re: YSF - kurta999's version - iLearner - 31.07.2017

The plugin keeps crashing my server, did you find any fix kurta.


Respuesta: Re: YSF - kurta999's version - Adoniiz - 31.07.2017

Quote:
Originally Posted by iLearner
Посмотреть сообщение
The plugin keeps crashing my server, did you find any fix kurta.
Also for me, I think the problem may be that we are using Ubuntu.

Server crash after a few hours...

PD: I already used the latest version but it still has the same problem.


Re: YSF - kurta999's version - iLearner - 30.08.2017

Hey kurta,

I've made 2 versions of my script with some updates etc, one was without YSF and another with YSF (using only PAUSE FUNCTIONS), I uploaded that version and your plugin in above post, server did not crash like other times however it froze after approx 20 mins (kicking x because they didn't logon...) And then I uploaded the version without YSF and without YSF plugin, its running well and no bugs so far.

The server hangs like an infinite loop however I am simply using IsPlayerPaused and GetPlayerPausedTime funcs.

PS: the test was made on my main server however same happened on test server as well.


Re: YSF - kurta999's version - kurta999 - 02.09.2017

I have absolutly NO IDEA, what is it. On my public server everything works fine since half year without any crashes.


Re: YSF - kurta999's version - [WSF]ThA_Devil - 08.09.2017

When I'm running my server on Windows, R19 works just fine. I try running it on linux and it crashes all the time. I tried the build you provided above, but it was of no help. R18 it is for now then.

Also the VPS is using Ubuntu 16.04.2 LTS.

Here's crashdetect log:
Код:
[11:41:48] [debug] Server crashed due to an unknown error
[11:41:48] [debug] Native backtrace:
[11:41:48] [debug] #0 f7356180 in _Z13GetStackTraceRSt6vectorI10StackFrameSaIS0_EEPv () from plugins/crashdetect.so
[11:41:48] [debug] #1 f734e064 in _ZN11CrashDetect20PrintNativeBacktraceERSoRKN2os7ContextE () from plugins/crashdetect.so
[11:41:48] [debug] #2 f734ed64 in _ZN11CrashDetect20PrintNativeBacktraceERKN2os7ContextE () from plugins/crashdetect.so
[11:41:48] [debug] #3 f7350cdb in _ZN11CrashDetect7OnCrashERKN2os7ContextE () from plugins/crashdetect.so
[11:41:48] [debug] #4 f73554d5 in ?? () from plugins/crashdetect.so
[11:41:48] [debug] #5 f774bbd0 in ?? ()
[11:41:48] [debug] #6 f774bbe9 in ?? ()
[11:41:48] [debug] #7 f73aaea9 in gsignal () from /lib/i386-linux-gnu/libc.so.6
[11:41:48] [debug] #8 f73ac407 in abort () from /lib/i386-linux-gnu/libc.so.6
[11:41:48] [debug] #9 f7619d35 in _ZN9__gnu_cxx27__verbose_terminate_handlerEv () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[11:41:48] [debug] #10 f7617833 in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[11:41:48] [debug] #11 f76178ad in ?? () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[11:41:48] [debug] #12 f7617bce in __cxa_rethrow () from /usr/lib/i386-linux-gnu/libstdc++.so.6
[11:41:48] [debug] #13 f60984bf in _ZNSt10_HashtableItSt4pairIKtSt13unordered_mapIhSsSt4hashIhESt8equal_toIhESaIS0_IKhSsEEEESaISB_ENSt8__detail10_Select1stES5_ItES3_ItENSD_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
[11:41:48] [debug] #14 f609862a in _ZNSt8__detail9_Map_baseItSt4pairIKtSt13unordered_mapIhSsSt4hashIhESt8equal_toIhESaIS1_IKhSsEEEESaISC_ENS_10_Select1stES6_ItES4_ItENS_18_Mod_range_hashingENS_20_Default_ranged_hashENS_20_Prime_rehash_policyENS_17_Hashtable_traitsILb0ELb0ELb1EEELb1EEixEOt () from plugins/YSF.so
[11:41:48] [debug] #15 f6096bed in ?? () from plugins/YSF.so
[11:41:48] [debug] #16 f72a1052 in sampgdk_SetPlayerObjectMaterialText () from plugins/streamer.so
[11:41:48] [debug] #17 f72f7ef7 in _ZN8Streamer13streamObjectsER6Playerb () from plugins/streamer.so
[11:41:48] [debug] #18 f72fb889 in _ZN8Streamer24performPlayerChunkUpdateER6Playerb () from plugins/streamer.so
[11:41:48] [debug] #19 f7300404 in _ZN8Streamer20startAutomaticUpdateEv () from plugins/streamer.so
[11:41:48] [debug] #20 f72be1d5 in ProcessTick () from plugins/streamer.so
[11:41:48] [debug] #21 080d1ce2 in ?? () from samp03svr
[11:41:48] [debug] #22 080aef6c in ?? () from samp03svr
[11:41:48] [debug] #23 080aa13a in ?? () from samp03svr
[11:41:48] [debug] #24 f7397637 in __libc_start_main () from /lib/i386-linux-gnu/libc.so.6
[11:41:48] [debug] Registers:
[11:41:48] [debug] EAX: 00000000 EBX: 000048a9 ECX: 000048a9 EDX: 00000006
[11:41:48] [debug] ESI: 081a18ec EDI: ffad87b4 EBP: ffad8888 ESP: ffad86f8
[11:41:48] [debug] EIP: f774bbe9 EFLAGS: 00000206
[11:41:48] [debug] Stack:
[11:41:48] [debug] ESP+00000000: ffad8888 00000006 000048a9 f73aaea9
[11:41:48] [debug] ESP+00000020: 00000000 ffad8788 f7770a74 00000006
[11:41:48] [debug] ESP+00000040: 00000000 00000000 00000000 00000000
[11:41:48] [debug] ESP+00000060: 00000000 00000000 00000000 00000000
[11:41:48] [debug] ESP+00000080: 00000000 00000000 00000000 00000000
[11:41:48] [debug] ESP+000000a0: 00000000 00000000 00000000 00000000
[11:41:48] [debug] ESP+000000c0: f7531cc0 f73e947b f7755a90 f75af32c
[11:41:48] [debug] ESP+000000e0: f776e1b8 f737e250 00000001 00000005
[11:41:48] [debug] ESP+00000100: f7531cc0 f73e461d f7770000 f75c432c
[11:41:48] [debug] ESP+00000120: 081a18ec f737d700 f775a80b f771a000
[11:41:48] [debug] ESP+00000140: 09b94288 f73ac2b0 f73ac2b7 f771a000
[11:41:48] [debug] ESP+00000160: 00000000 f76c7e54 f7770000 f75c432c
[11:41:48] [debug] ESP+00000180: f7619beb f771a000 00000000 474e5543
[11:41:48] [debug] ESP+000001a0: f771a000 f76178ad f7619be0 f7761030
[11:41:48] [debug] ESP+000001c0: f771a000 f7617bce 09ec3120 f76168a6
[11:41:48] [debug] ESP+000001e0: ffad8938 f60984bf 09ec3120 00000000
[11:41:48] [debug] ESP+00000200: f73ee079 f7531780 f7531000 0000002c
[11:41:48] [debug] ESP+00000220: 0100002c 17618187 00000000 09c0cce0
[11:41:48] [debug] ESP+00000240: ffad8988 f609862a ffad896c 09d3fe33
[11:41:48] [debug] ESP+00000260: f60b0000 f60974ee 0000003a 09b94248
[11:41:48] [debug] ESP+00000280: 0921ec90 f60b0000 00000000 ffad89d4
[11:41:48] [debug] ESP+000002a0: ffad89dc 00000001 f7326ae0 ffad8a44
[11:41:48] [debug] ESP+000002c0: 0000001c 09f08448 00000000 001e8200
[11:41:48] [debug] ESP+000002e0: 09ee62d4 09a8234c 00000006 09970434
[11:41:48] [debug] ESP+00000300: ffad8a88 f72a1052 f7326ae0 ffad8a44
[11:41:48] [debug] ESP+00000320: 09970434 0000001e 00000000 ff000000
[11:41:48] [debug] ESP+00000340: 00000000 00000000 407f4000 0000002c
[11:41:48] [debug] ESP+00000360: 00000082 00000070 0000001e 00000000
[11:41:48] [debug] ESP+00000380: 00000000 f73253c0 09970390 00003001
[11:41:48] [debug] ESP+000003a0: 09970404 00000000 00000082 09970434
[11:41:48] [debug] ESP+000003c0: 00000000 00000008 00000009 f7615d76
[11:41:48] [debug] ESP+000003e0: 00000009 ffad8b30 f731553c f7315562
[11:41:48] [debug] Loaded modules:
[11:41:48] [debug] 00000000 - 00187dc3 samp03svr
[11:41:48] [debug] f774b000 - f774bd3b 
[11:41:48] [debug] f773b000 - f773da04 /lib/i386-linux-gnu/libdl.so.2
[11:41:48] [debug] f771e000 - f77396ef /lib/i386-linux-gnu/libpthread.so.0
[11:41:48] [debug] f75a7000 - f7727b4b /usr/lib/i386-linux-gnu/libstdc++.so.6
[11:41:48] [debug] f7552000 - f75a6010 /lib/i386-linux-gnu/libm.so.6
[11:41:48] [debug] f7535000 - f75511e4 /lib/i386-linux-gnu/libgcc_s.so.1
[11:41:48] [debug] f737f000 - f753bb07 /lib/i386-linux-gnu/libc.so.6
[11:41:48] [debug] f774c000 - f776f784 /lib/ld-linux.so.2
[11:41:48] [debug] f7338000 - f737aac4 plugins/crashdetect.so
[11:41:48] [debug] f7327000 - f7336344 plugins/sscanf.so
[11:41:48] [debug] f7269000 - f732739a plugins/streamer.so
[11:41:48] [debug] f7260000 - f7267714 /lib/i386-linux-gnu/librt.so.1
[11:41:48] [debug] f7256000 - f725ed1c plugins/Whirlpool.so
[11:41:48] [debug] f6eb2000 - f725aac7 plugins/mysql_static.so
[11:41:48] [debug] f649f000 - f64b02ec /lib/i386-linux-gnu/libnss_files.so.2
[11:41:48] [debug] f6053000 - f6100c5b plugins/YSF.so
[11:41:48] [debug] f643f000 - f6443a38 /lib/i386-linux-gnu/libnss_dns.so.2
[11:41:48] [debug] f6426000 - f643d494 /lib/i386-linux-gnu/libresolv.so.2