[Plugin] YSF - kurta999's version

Man, I understand what you want to say

Client side only one object pool used. When player connects, every global object will show with their own id and after that player objects with ther own id too.

But player object will never exists with global object id.
Reply

soo get a blank script, then

createobject

then createplayerobject (on a valid player)

they won't return the same ids?

I still think you don't get it.
Reply

Quote:
Originally Posted by Kar
Посмотреть сообщение
soo get a blank script, then

createobject

then createplayerobject (on a valid player)

they won't return the same ids?

I still think you don't get it.
No, they won't.

https://code.******.com/p/open-samp/...objectpool.cpp
Reply

R12 released!

Updates:
- Added SetPlayerPosForPlayer*, SetPlayerRotationQuatForPlayer*
- Added GetPlayerSurfingPlayerObjectID
- Added GetObjectType
- Added functions which support inline formatting: SendClientMessagef, SendClientMessageToAllf, GameTextForPlayerf, GameTextForAllf, SendPlayerMessageToPlayerf, SendPlayerMessageToAllf, SendRconCommandf
- Added IsValidServerRule , GetServerRuleFlags
- ModifyFlag renamed to SetServerRuleFlags
- You can change YSF tickrate in pawn or you can disable update checks totaly within YSF(set tick rate to -1)
- Fixed gang zone overlapping bug when you show a visible gang zone for player
- Fixed OnServerMessage on linux

* If you want to set player position/rotation (in quat) for another player then you need to set latest parameter (forcesync) to 1. While ths parameter is 1, target player position will be changed to custom position in network packet. So this player won't able to move just stay at same position for given player. If you want to disable it, then just set forcesync to 0 and done.

Download:
https://github.com/kurta999/YSF/releases/tag/R12 - Please only use it with 0.3z R4 otherwise it will crash, maybe.

Thanks to Gamer_Z & ****** to help hooking RakPeer:Send.
Reply

Hi Kurta.
I've compiled R12 on my Debian server, and now got this:

root@****:~# ./samp03svr
./samp03svr: symbol lookup error: plugins/YSF.so: undefined symbol: sampgdk_Supp orts
Reply

Oh, fixed. Redownload makefile from git.
Reply

Thanks!

And I've found this:
Use HidePlayerForPlayer(forplayerid, playerid), then ShowPlayerForPlayer(forplayerid, playerid).
Forplayerid will see playerid with CJ skin (id 0), however playerid will see his old skin.

Sorry for my English.

UPD: and some issue with SendClientMessageToAllf.
I'm using
pawn Код:
#define CORANGE 0xFF9900AA
SendClientMessageToAllf(CORANGE,"<< Администратор %s[%i]: %s >>",GN(playerid), playerid, result);

But the color is:
Reply

And SendClientMessagef works fine...no color bugs
Reply

Oh, fail

Will be fixed tomorrow, thanks.

Quote:
Originally Posted by Anuris
Посмотреть сообщение
Thanks!

And I've found this:
Use HidePlayerForPlayer(forplayerid, playerid), then ShowPlayerForPlayer(forplayerid, playerid).
Forplayerid will see playerid with CJ skin (id 0), however playerid will see his old skin.
Maybe i'll fix this completly in R13.
Reply

Please add the function:
pawn Код:
SetPlayerNameTagDrawDistance(playerid, Float:distance);
Reply

Thanks, Kurta.
I've downloaded last Scripting.cpp, now works fine.
Reply

Bug on function "SendClientMessageToAllf" - this write text only in green.
Reply

Fixed, just redownload R12 from github.

Quote:
Originally Posted by Kolstin
Посмотреть сообщение
Please add the function:
pawn Код:
SetPlayerNameTagDrawDistance(playerid, Float:distance);
Impossible
Reply

Please fix SendClientMessageToAllf it's write all server green please...
Reply

Please redownload from github, already fixed.
Reply

He said it twice now. It's fixed already. Just redownload the plugin from github.
Reply

When I exit vehicle (like infernus, turismo, sultan, jester) and I don't move its called to public:
OnPlayerPauseStateChange(playerid, 1);
fix this bug please, thank you.
if you don't understood I will upload video.
Reply

I understand. I'll try.
Reply

Quote:
Originally Posted by kurta999
Посмотреть сообщение
I understand. I'll try.
Thank you very much.
Reply

kurta ? when I want to compile the include with my gamemode, the pawn compiler stops working without any errors.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)