In mobile samp there is a bug. Rustler plane cannot damage players or vehicles if they're using mobile samp client. This script for samp server [Pawn] fixes it, so you can now damage all players and vehicles.
There is a different ways this script can work: it can transmit only damage to players, or it can transmit BulletSync data. So dependencies will be different for each method.
- Pawn.RakNet plugin (katursis) - if BulletSync is transmiting
- mobile.inc - if you want to distinguish Mobile client players from PC
- Install all includes from dependencies list to your pawno
- In rustlerFireFix.pwn you can fast-configure:
- Uncomment
#include "mobile.inc"on ≈10 line and from ≈170 to ≈174 lines (starting withif (!IsPlayerMobile(targetid))) if you want to distinguish Mobile client players from PC #define DEBUG_MODE [true/false]- enable/disable printing debug messages in console and server log#define BULLET_SYNC_ENABLE [true/false]- enable/disable BulletSync data packet to be transmitted to damaged player#define BULLET_SYNC_STREAM_ENABLE [true/false]- enable/disable BulletSync data packet to be transmitted to all players in victim's stream area (only works ifBULLET_SYNC_ENABLEistrue)
- Uncomment
- Script now should be configured to your purposes and can be compiled
- Install all plugins from dependencies list to your server
- Compile the script and place it into
filescriptsfolder - Don't forget to place generated
ColAndreas.cadbfile intoscriptfiles/colandreasfolder. Script with pre-generatedColAndreas.cadbfile can be found in any release archive. - Your server.cfg file should look something like this:
bind 127.0.0.1
echo RustlerFireFix server config file example
lanmode 0
rcon_password Rustler
maxplayers 50
port 7777
hostname Rustler Fire Fix Demo Server
gamemode0 lvdm 1
filterscripts rustlerFireFix
plugins ColAndreas pawnraknet
announce 0
chatlogging 0
weburl sampmap.ru
onfoot_rate 40
incar_rate 40
weapon_rate 40
stream_distance 300.0
stream_rate 1000
maxnpc 0
logtimeformat [%H:%M:%S]
language English