-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #229 from MrDave1999/support/YSF-plugin
feat: Add support for YSF Server Functions
- Loading branch information
Showing
8 changed files
with
71 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# Turning this on disables all hooks and custom processing, as well as natives that rely on that | ||
PassiveMode 0 | ||
|
||
# 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 | ||
|
||
# Set it to 1 when you want to use per player gangzones | ||
UsePerPlayerGangZones 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 | ||
|
||
# This option makes newly created player objects prioritize IDs used by other existing player objects. | ||
GroupPlayerObjects 0 |
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
namespace CTF.Host.Middlewares; | ||
|
||
public class PlayerPauseStateChangeMiddleware(EventDelegate next) | ||
{ | ||
public object Invoke(EventContext context, IEntityManager entityManager) | ||
{ | ||
var playerEntity = SampEntities.GetPlayerId((int)context.Arguments[0]); | ||
|
||
if (!entityManager.Exists(playerEntity)) | ||
return null; | ||
|
||
context.Arguments[0] = playerEntity; | ||
return next(context); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters