This system allows cheaters to shoot through objects (because we trust only shooter and don't listening what damaged player saying about trajectory of bullet). So there is no way to make really good server-sided shooting system without plugins like ColAndreas (but they are very slow for that kind of usage).
Sorry for my bad English. |
Maybe a check every second if the issuer isn't shooting through walls, and if he is return 0; any damage until the next check gives a green light.
|
Yeah, i thought about that too, in this case maybe it would be not really hard for server. Need to try that.
|
This system allows cheaters to shoot through objects (because we trust only shooter and don't listening what damaged player saying about trajectory of bullet). So there is no way to make really good server-sided shooting system without plugins like ColAndreas (but they are very slow for that kind of usage).
Sorry for my bad English. |
False. This has absolutely nothing to do with objects. The bullets are still synced as usual, nothing is in this to bother that except invalid shots.
|
This system allows cheaters to shoot through objects (because we trust only shooter and don't listening what damaged player saying about trajectory of bullet). So there is no way to make really good server-sided shooting system without plugins like ColAndreas (but they are very slow for that kind of usage).
Sorry for my bad English. |
I'm planning to add a new custom damage type to our gamemode that is damage over time via STIs/STDs.
I'd like to deal out the damage using DamagePlayer. I have given a throw at adding it but I'm unsure if I did it correctly. Is this the correct way?: https://puu.sh/kpsDW/715c7ba292.txt |
That could work. How are you dealing with it in your script though?
|
Well first off you could just use SetWeaponName to set the name of id 21. That way you wouldn't need to modify weapon-config. If you do wish to modify the include, you should make a generic solution.
For example, you could make weaponid 21 a custom damage type, then use bodypart to specify which one. That way, all the custom weapon data could be in another array. That's good because it will not go through the range/rate/dmg checks anyway. |
Hello, I think I found a bug/or its a problem on my side
But whenever I add an NPC into my server certain things stop working, like the damage informer the little "rejected hit" notification doesnt pop up in the chat. If i remove the "connectNPC" line it works again. Is my server dying from AIDS? |
---------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3.7-R2, ©2005-2015 SA-MP Team [16:36:24] [16:36:24] Server Plugins [16:36:24] -------------- [16:36:24] Loading plugin: crashdetect [16:36:24] CrashDetect v4.15.1 is OK. [16:36:24] Loaded. [16:36:24] Loading plugin: wp [16:36:24] [16:36:24] ================== [16:36:24] [16:36:24] Whirlpool loaded [16:36:24] [16:36:24] ================== [16:36:24] [16:36:24] Loaded. [16:36:24] Loading plugin: sscanf [16:36:24] [16:36:24] =============================== [16:36:24] sscanf plugin loaded. [16:36:24] Version: 2.8.1 [16:36:24] © 2012 Alex "******" Cole [16:36:24] =============================== [16:36:24] Loaded. [16:36:24] Loading plugin: streamer [16:36:24] *** Streamer Plugin v2.7.8 by Incognito loaded *** [16:36:24] Loaded. [16:36:24] Loading plugin: mysql [16:36:24] >> plugin.mysql: R39-2 successfully loaded. [16:36:24] Loaded. [16:36:24] Loading plugin: GeoIP_Plugin [16:36:24] GeoIP_Plugin got loaded. [16:36:24] Loaded. [16:36:24] Loading plugin: iTD [16:36:24] * iTD Plugin loaded. (Support for textdraw editor mouse/keyboard) [16:36:24] Loaded. [16:36:24] Loading plugin: libRegEx [16:36:24] [16:36:24] ------------------------------ [16:36:24] | [16:36:24] | -> Regular Expression Plugin v0.2 [16:36:24] | -> Using Oniguruma v5.9.5 [16:36:24] | [16:36:24] ------ © 2014, Koala ------- [16:36:24] [16:36:24] Loaded. [16:36:24] Loading plugin: nativechecker [16:36:24] Loaded. [16:36:24] Loading plugin: SKY [16:36:24] Loaded. [16:36:24] Loaded 10 plugins. [16:36:24] [16:36:24] Ban list [16:36:24] -------- [16:36:24] Loaded: samp.ban [16:36:24] [16:36:24] [16:36:24] Filterscripts [16:36:24] --------------- [16:36:24] Loading filterscript 'iTD.amx'... [16:36:24] iPLEOMAX's TextDraw Editor loaded successfully! Version: 1.16 Stable (13/10/2012) [16:36:24] Loading filterscript 'progesss.amx'... [16:36:24] Progress Bar Creator by Flavio Toribio loaded [16:36:24] Loading filterscript 'cameditor.amx'... [16:36:24] -------------------------------------- [16:36:24] CamEditor by Drebin [16:36:24] -------------------------------------- [16:36:24] Loading filterscript 'anim_preloader.amx'... [16:36:24] ___ _ ___ __ __ [16:36:24] / _ | ___ (_)__ _ / _\ ____ ___ / /___ ___ _ ___/ /___ ____ [16:36:24] / __ | / _ \ / // ' \ / ___// __// -_)/ // _ \/ _ `// _ // -_)/ __/ [16:36:24] /_/ |_|/_//_//_//_/_/_/ /_/ /_/ \__//_/ \___/\_,_/ \_,_/ \__//_/ [16:36:24] loaded. [16:36:24] Loading filterscript 'revctrl.amx'... [16:36:24] Loaded 5 filterscripts. [16:36:25] Error: Function not registered: 'FreezeSyncData' [16:36:25] Error: Function not registered: 'SetFakeFacingAngle' [16:36:25] Error: Function not registered: 'SendLastSyncData' [16:36:25] Error: Function not registered: 'ClearAnimationsForPlayer' [16:36:25] Error: Function not registered: 'SetKnifeSync' [16:36:25] Error: Function not registered: 'SetFakeHealth' [16:36:25] Error: Function not registered: 'SetFakeArmour' [16:36:25] Error: Function not registered: 'PlayerTextDrawSetPosition' [16:36:25] Error: Function not registered: 'SpawnPlayerForWorld' [16:36:25] [16:36:25] [16:36:25] [16:36:25] ======================================= [16:36:25] | | [16:36:25] | YSI version 4.00.0001 | [16:36:25] | By Alex "******" Cole | [16:36:25] | | [16:36:25] ======================================= [16:36:25] [16:36:25] [MYSQL]: Connection to database (bazadate) was established! [16:36:25] 1 businesses loaded [16:36:25] 1 houses loaded [16:36:25] [script] 18 turfs loaded. [16:36:25] Achievement ID: 1 | Name: Get the Driving License [16:36:25] Achievement ID: 2 | Name: Get the Sailing License [16:36:25] Achievement ID: 3 | Name: Get the Flying License [16:36:25] Achievement ID: 4 | Name: Get the Gun License [16:36:25] Achievement ID: 5 | Name: Join a Faction [16:36:25] Achievement ID: 6 | Name: Get rank 6 [16:36:25] Achievement ID: 7 | Name: Become a Leader [16:36:25] Achievement ID: 8 | Name: Become an Admin [16:36:25] [script] 5 admin teleports loaded. [16:36:25] Anti advertising system loaded. Filters found: 1 [16:36:25] *Spawn-bikes loaded: 5* [16:36:25] [CLANS] 4 clans loaded [16:36:25] [FREQS] 4 private frequencies loaded [16:36:25] -mSelection- WARNING: Failed to load list: "skinbik.txt" [16:36:25] -mSelection- WARNING: Failed to load list: "skincsa.txt" [16:36:25] [16:36:25] [16:36:25] RPG: RC6 San Fierro [16:36:25] _____________________ [16:36:25] Number of vehicle models: 3