Thanks, it works!
R19 released!
- Added plugins/YSF.cfg - for more info see below
- Added ability to change RCON commands name
- Added CallFunctionInScript
- Added TextDrawSetStringForPlayer
- Added exclusive RPC broadcast (for more info see YSF_examples.pwn)
- Made execute() calls threaded and added a pawn callback to read command output
- AttachPlayerObjectToPlayer has been rewritten from scratch, now it's more stable and uses less memory
- Fixed rcon messages wasn't appearing in chat
- Fixed GetActorAnimation
- More sanity checks against crashes
Merged functions from IllidanS4's fork of YSF:
https://github.com/IllidanS4/YSF -
https://sampforum.blast.hk/showthread.php?tid=609499
- Merged GetSyncBounds, SetSyncBounds
- Merged GetNPCCommandLine
- Merged SetVehicleParamsSirenState, ToggleVehicleSirenEnabled, IsVehicleSirenEnabled, GetVehicleMatrix
Plus two callback has been merged too:
pawn Код:
forward OnOutcomeScmEvent(playerid, issuerid, E_SCM_EVENT_TYPE:eventid, vehicleid, arg1, arg2);
forward OnServerQueryInfo(const ipaddr[], hostname[51], gamemode[31], language[31]); // YET DISABLED!!!
YSF.cfg:
Код:
# Protection against fake pickup ids
PickupProtection 0
# Protection against fakekill
DeathProtection 0
# Protection against sproofed dialog ids
DialogProtection 0
# Use redirected YSF's own RPC for spawning
UseCustomSpawn 0
# Allowing remote RCON connections with banned IPs (its very good to enable when you need to unban yourself)
AllowRemoteRCONWithBannedIPs 0
# Use this if you want to use SetMaxPlayers to increase your server slots at runtime
# DANGER: With enabling this option server will allow to connect 1000 players, doesn't matter what is your "maxplayers" value in server.cfg!
IncreaseRakNetInternalPlayers 0
# If the option above isn't enabled this option won't have any effect
# Change raknet internal threads sleeping time, lowering the value migh result in smoother sync - by default is 5ms
RakNetInternalSleepTime 5
# Delay im ms - object will be attached to player after this delay passed, lowering this delay might result in crashes
AttachObjectDelay 2000
# SA-MP by default doesn't store material info for per-player objects, which made GetPlayerObjectMaterial/MaterialText broken
# If you just use streamer for objects and you don't wanna use those two natives below, then disable this option
StorePlayerObjectsMaterial 1
# With this option you can load YSF on whatever server version, but it can result unwanted behavior
SkipVersionCheck 0
Download:
https://github.com/kurta999/YSF/releases/tag/R19