SA-MP Forums Archive
Lag shot - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Server (https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Lag shot (/showthread.php?tid=541519)



Lag shot - Bondage - 12.10.2014

How do i enable and disable lag shot on the server?


Re: Lag shot - ZaBraNjeNi - 12.10.2014

Open your server.cfg and make a new line.
If it should be off, then use:
Код:
lagcomp off
If it should be on, then use:
Код:
lagcomp on



Re: Lag shot - fall3n - 12.10.2014

I don't think if 'lagcomp' variable accepts string, it should be numeric. If you set lagcompmode to 0, you can have lag-shooting.


Respuesta: Lag shot - IvanAyuso - 12.10.2014

Use 'lagcompmode' setting in server.cfg

Quote:

Setting this to 0 will fully disable lag compensation. Setting it to 1 will enable lag compensation. Setting it to 2 will enable position-only lag compensation. This means player rotation won't be lag comp'd.

https://sampwiki.blast.hk/wiki/server.cfg


Re: Lag shot - RGOimpact - 14.10.2014

Here's an easier way.

You asked how to enable and disable, editing the config file is a little harder because you need to restart after each time.. Which is a waste of time.
Instead, do:

1. Start server, join the game.

2. Type '/rcon login [yourpassword]'

3a. type '/rcon lagcompmode 1'
- That will/should enable it.

3b. type 'rcon /lagcompmode 0'
- That will/should disable it.


Respuesta: Re: Lag shot - IvanAyuso - 14.10.2014

Quote:
Originally Posted by RGOimpact
Посмотреть сообщение
Here's an easier way.

You asked how to enable and disable, editing the config file is a little harder because you need to restart after each time.. Which is a waste of time.
Instead, do:

1. Start server, join the game.

2. Type '/rcon login [yourpassword]'

3a. type '/rcon lagcompmode 1'
- That will/should enable it.

3b. type 'rcon /lagcompmode 0'
- That will/should disable it.
I'm afraid not...

Quote:

Lag compensation for fired bullets is enabled by default on SA-MP servers since 0.3z. It can be toggled using the 'lagcompmode' server variable (in server.cfg). Setting it to 0 will disable lag compensation completely and players will have to lead their shots (fired ahead of targets).

This variable can only be set in server.cfg

lagcompmode = (int, read-only)
https://sampwiki.blast.hk/wiki/Lag_Compensation