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 - kurta999 - 13.03.2015

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.


Re: YSF - kurta999's version - Kar - 13.03.2015

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.


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

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


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

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.


Re: YSF - kurta999's version - Anuris - 14.03.2015

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


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

Oh, fixed. Redownload makefile from git.


Re: YSF - kurta999's version - Anuris - 14.03.2015

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:



Re: YSF - kurta999's version - Anuris - 15.03.2015

And SendClientMessagef works fine...no color bugs


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

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.


Re: YSF - kurta999's version - Romz - 16.03.2015

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



Re: YSF - kurta999's version - Anuris - 16.03.2015

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


Re: YSF - kurta999's version - GuyYahood1 - 16.03.2015

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


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

Fixed, just redownload R12 from github.

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


Re: YSF - kurta999's version - GuyYahood1 - 18.03.2015

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


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

Please redownload from github, already fixed.


AW: YSF - kurta999's version - FSAOskar - 18.03.2015

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


Re: YSF - kurta999's version - GuyYahood1 - 19.03.2015

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.


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

I understand. I'll try.


Re: YSF - kurta999's version - GuyYahood1 - 19.03.2015

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


Re: YSF - kurta999's version - MehranGta - 25.03.2015

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