Jump to content
  • Sign Up

Registra la IP del Zombie Escape!

Ingresa a favoritos de tu CS 1.6 y escribe esta IP: ze1.lancelotgames.org:27015
IP: ze1.lancelotgames.org:27015

Nueva IP del Servidor Publico!

Ingresa a favoritos de tu CS 1.6 y escribe esta IP: 74.91.114.33:27015
Lo último:
  • Noticias:
  • Renovamos nuestro Portal este 2021. Disfrútalo!!!
  • Zombie Escape: ze.lancelotgames.org:27015
  • Servidor Publico: 74.91.114.33:27015

Recommended Posts

#include <amxmodx>
#include <fakemeta>

new iFrames[33]

#define LIMIT 144

public plugin_init() {
	register_plugin("[DPCS]: FPS Limit", "1.0", "Multipower")
	register_forward(FM_PlayerPreThink, "Forward_PlayerPreThink")
}

public Forward_PlayerPreThink(id) {
	if(!is_user_alive(id)) return FMRES_IGNORED
	
	iFrames[id]++
	return FMRES_IGNORED
}

public client_authorized(id) {
	console_cmd(id, "fps_max 144;")
}

public client_putinserver(id) {
	iFrames[id] = 0
	set_task(1.0, "ShowFps",id+19075, _, _, "b")
}

public client_disconnected(id) {
	if(task_exists(id+19075)) {
		remove_task(id+19075)
	}
}

public ShowFps(id)
{
	id -= 19075
	if(is_user_alive(id) && iFrames[id] >= LIMIT) {
		console_cmd(id, "fps_max 144;")
		console_cmd(id, "fps_modem 144;")
		set_pev(id, pev_velocity, 1.0)
	}
	iFrames[id] = 0
}

Set el límite de FPS de forma impenetrable. Si alguien lo supera, lo fija en 144 y restablece su velocidad. Lo uso en mi propia comunidad.

  • Like 2
  • Thanks 1

Share this post


Link to post
Share on other sites
hace 19 horas, Multipower dijo:

#include <amxmodx>
#include <fakemeta>

new iFrames[33]

#define LIMIT 144

public plugin_init() {
	register_plugin("[DPCS]: FPS Limit", "1.0", "Multipower")
	register_forward(FM_PlayerPreThink, "Forward_PlayerPreThink")
}

public Forward_PlayerPreThink(id) {
	if(!is_user_alive(id)) return FMRES_IGNORED
	
	iFrames[id]++
	return FMRES_IGNORED
}

public client_authorized(id) {
	console_cmd(id, "fps_max 144;")
}

public client_putinserver(id) {
	iFrames[id] = 0
	set_task(1.0, "ShowFps",id+19075, _, _, "b")
}

public client_disconnected(id) {
	if(task_exists(id+19075)) {
		remove_task(id+19075)
	}
}

public ShowFps(id)
{
	id -= 19075
	if(is_user_alive(id) && iFrames[id] >= LIMIT) {
		console_cmd(id, "fps_max 144;")
		console_cmd(id, "fps_modem 144;")
		set_pev(id, pev_velocity, 1.0)
	}
	iFrames[id] = 0
}

Set el límite de FPS de forma impenetrable. Si alguien lo supera, lo fija en 144 y restablece su velocidad. Lo uso en mi propia comunidad.

Buen aporte!

Share this post


Link to post
Share on other sites

Lo único seria ponerlo en 60 o 80 fps ,ya que el limite es de 100.5 en steam.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...