←  Szukam pluginu

AMXX.pl: Support AMX Mod X i SourceMod

»

plugin na dr

Kartofelek's Photo Kartofelek 17.09.2011

siema szukam pluingu który wymusza lub zabrania używania fps_mode 999 fps_max 999 developer 1
każdy ma mieć fps_mode 100 fps_max 100 developer 0
Quote

  • +
  • -
Mousher's Photo Mousher 17.09.2011

/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "Interp 0.01 Forever"
#define VERSION "1.0"
#define AUTHOR "Ever"

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("HLTV","interp","a", "1=0", "2=0")
register_cvar("amx_interp_style", "1")
}

public interp()
{
new players[32],count;
get_players(players,count)


new style = get_cvar_num("amx_interp_style")


if(style == 1 )
{
for (new i = 1; i <= count; i++)
console_cmd (i,"developer 0; wait; wait; fps_modem 100; wait; wait; fps_max 100")
}

else
{
for (new i = 1; i <= count; i++)
{
console_cmd (i,"developer 0")
server_cmd("wait")
console_cmd (i,"fps_modem 100")
server_cmd("wait")
console_cmd (i,"fps_max 100")
}
}
}

Przerobiony straznik ratow, mysle ze bedzie dzialac .. :S
Quote

  • +
  • -
A może sma?'s Photo A może sma? 17.09.2011

Co 5 sek wymusza te komendy:
#include <amxmodx>
public plugin_init() { register_plugin("FPS", "1.0", "kisiel96"); set_task(5.0, "FPS", _, _, _, "b"); }
public FPS(id) { client_cmd(id, "fps_max 100"); client_cmd(id, "fps_modem 100"); client_cmd(id, "developer 0"); }


Ew. zmień w set_task 5.0 na większą bądź mniejszą liczbę rzeczywistą, by dostosować czas.
Quote