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 - 17.05.2017

I cant fix it. This is an experimental function in client, i think this was the reason why it is not added to the server


Re: YSF - kurta999's version - CharlieSanchez - 17.05.2017

Well for future reference to other people.

If you wish to use the function:
Код:
TogglePlayerWidescreen(playerid, true);
Its advised that you have enabled Widescreen on your game settings otherwise it can create some strange black bars on screen, also it will block Key ESC and V for camera zoom.

Other than that it works and its sad that not possible to fix that issue, i quite want to use this function really bad

PS: Suggestion, would be awesome if you where able to manipulate the radar and hud individual or both, might not be possible to find the memory addresses, not sure as I'm not good with that kind of thing but it would be a great function and quite useful !

Thanks Kurta!


Re: YSF - kurta999's version - Spmn - 17.05.2017

Quote:
Originally Posted by CharlieSanchez
Посмотреть сообщение
PS: Suggestion, would be awesome if you where able to manipulate the radar and hud individual or both, might not be possible to find the memory addresses, not sure as I'm not good with that kind of thing but it would be a great function and quite useful !
Not possible with a server-only modification like YSF.
Use SAMP+ instead. Note that players must install SAMP+ client.


Re: YSF - kurta999's version - DimaShift - 26.05.2017

It's possible in the next version to add
native GetPlayerFPS(playerid);

stock GetPlayerFPS(playerid)
{
SetPVarInt(playerid, "DrunkL", GetPlayerDrunkLevel(playerid));
if(GetPVarInt(playerid, "DrunkL") < 100)
{
SetPlayerDrunkLevel(playerid, 2000);
}
else
{
if(GetPVarInt(playerid, "LDrunkL") != GetPVarInt(playerid, "DrunkL"))
{
SetPVarInt(playerid, "FPS", (GetPVarInt(playerid, "LDrunkL") - GetPVarInt(playerid, "DrunkL")));
SetPVarInt(playerid, "LDrunkL", GetPVarInt(playerid, "DrunkL"));
if((GetPVarInt(playerid, "FPS") > 0) && (GetPVarInt(playerid, "FPS") < 256))
{
return GetPVarInt(playerid, "FPS") - 1;
}
}
}
return 0;
}


Re: YSF - kurta999's version - DRIFT_HUNTER - 26.05.2017

Quote:
Originally Posted by DimaShift
Посмотреть сообщение
It's possible in the next version to add
native GetPlayerFPS(playerid);

stock GetPlayerFPS(playerid)
{
SetPVarInt(playerid, "DrunkL", GetPlayerDrunkLevel(playerid));
if(GetPVarInt(playerid, "DrunkL") < 100)
{
SetPlayerDrunkLevel(playerid, 2000);
}
else
{
if(GetPVarInt(playerid, "LDrunkL") != GetPVarInt(playerid, "DrunkL"))
{
SetPVarInt(playerid, "FPS", (GetPVarInt(playerid, "LDrunkL") - GetPVarInt(playerid, "DrunkL")));
SetPVarInt(playerid, "LDrunkL", GetPVarInt(playerid, "DrunkL"));
if((GetPVarInt(playerid, "FPS") > 0) && (GetPVarInt(playerid, "FPS") < 256))
{
return GetPVarInt(playerid, "FPS") - 1;
}
}
}
return 0;
}
Why? Its already possible in pawn...


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

This functions not working:
SetVehicleParamsSirenState
ToggleVehicleSirenEnabled


Re: YSF - kurta999's version - Salik - 06.06.2017

Can you add the playerid parameter for TextDrawSetPos, it is simply redirected for each.


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

Use per player textdraws, it would be totaly mess if i add that.

AbyssMorgan: try to stream out the vehicle


Re: YSF - kurta999's version - Salik - 06.06.2017

I think there will not be a mess, anyone who wants that will use the function, you can add a parameter as non-mandatory - (-1 For all) - (PlayerID for a particular player).


Re: YSF - kurta999's version - Scottas - 10.06.2017

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.


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

https://usercontent.irccloud-cdn.com...CrLL/image.png

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

Any idea?


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

Try to setting storeplayermaterial to 0 in YSF.cfg, it worked for me. It already fixed but new version isnt uploaded yet


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

Its already 0


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

Try with this please


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

If it crashes again I'll ^


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

It will..


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

It did

[19:35:09] Loading plugin: YSF.so
[19:35:09] Failed (plugins/YSF.so: undefined symbol: _ZTINSt6thread6_StateE)
[19:35:09] Loaded 5 plugins.

Tbh bruh


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

I've temporary removed YSF as it was crashing my server every hour or so, I'll be waiting eagerly for you to fix the issue!

@sprtik Haven't tried nor I am planning to, I'll wait for kurta instead.


Re: YSF - kurta999's version - DRIFT_HUNTER - 13.06.2017

Quote:
Originally Posted by iLearner
Посмотреть сообщение
I've temporary removed YSF as it was crashing my server every hour or so, I'll be waiting eagerly for you to fix the issue!

@sprtik Haven't tried nor I am planning to, I'll wait for kurta instead.
Try compiling it yourself, it can fix allot of issues. I know it did help me with streamer few years back.


Re: YSF - kurta999's version - Zorono - 13.06.2017

hey all, please can anyone explain for me what does this error mean ??
Код:
[2017 | 22:43:58] YSF: Might dialog hack has been detected for player [BR]Zeax(0) - which should be: 65535, dialogid: 1244