[Plugin] YSF - kurta999's version

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
Reply

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!
Reply

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.
Reply

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;
}
Reply

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...
Reply

This functions not working:
SetVehicleParamsSirenState
ToggleVehicleSirenEnabled
Reply

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

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

AbyssMorgan: try to stream out the vehicle
Reply

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).
Reply

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.
Reply

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

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

Any idea?
Reply

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

Its already 0
Reply

Try with this please
Reply

If it crashes again I'll ^
Reply

It will..
Reply

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
Reply

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.
Reply

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.
Reply

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
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)