←  Pluginy

AMXX.pl: Support AMX Mod X i SourceMod

»

wykonanie polecenia na graczy przez konsole

Zablokowany

  • +
  • -
BW:*|4fun - zdjęcie BW:*|4fun 06.10.2009

Witam, kto mi napisze plugin, ktory by po 20 minutach od rozpoczecia mapy wpisywal w konsole kazdemu graczowi polecenie "say /rate"

czyli plugin zmuszajacy graczy do napisania /rate po 20 minutach od rozpoczecia mapy.
Odpowiedz

  • +
  • -
mgr inż. Pavulon - zdjęcie mgr inż. Pavulon 06.10.2009

#include <amxmodx>



public plugin_init() {

	register_plugin("New Plug-In", "1.0", "AMXX.PL")

	

	set_task(60.0*20, "say_rate")

}

public say_rate()

	client_cmd(0, "say /rate")
Odpowiedz

  • +
  • -
BW:*|4fun - zdjęcie BW:*|4fun 07.10.2009

Taki error przy kompilacji na lokalu

//// sayrate.sma
// D:Downloadsamxmodx-1.8.1-baseaddons/amxmodx/scriptingsayrate.sma(9) : error 001: expected token: ",", but found "-end of file-"
//
// 1 Error.
// Could not locate output file compiledsayrate.amx (compile failed).

A taki przy kompilacji online

/home/groups/amxmodx/compiler3/core(0) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(5) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(6) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(7) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(8) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(9) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(10) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(11) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(12) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(13) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(14) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(15) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(17) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(18) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(19) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(20) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(21) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(22) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(23) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(24) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(25) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(26) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(27) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(28) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(29) : error 075: input line too long (after substitutions)
/home/groups/amxmodx/compiler3/core(30) : error 075: input line too long (after substitutions)

Compilation aborted.
26 Errors.
Done.


Bardzo proszę o pomoc ;]
Odpowiedz

  • +
  • -
naven - zdjęcie naven 07.10.2009

Dziwne, mi kompiluje się ok

Welcome to the AMX Mod X 1.8.1-300 Compiler.
Copyright © 1997-2006 ITB CompuPhase, AMX Mod X Team

Header size: 200 bytes
Code size: 332 bytes
Data size: 180 bytes
Stack/heap size: 16384 bytes; estimated max. usage=39 cells (156 bytes)
Total requirements: 17096 bytes
Done.

Odpowiedz

  • +
  • -
mgr inż. Pavulon - zdjęcie mgr inż. Pavulon 07.10.2009

No właśnie mi też bez problemów. Specjalnie testowałem lokalnie i tutaj.
Odpowiedz

  • +
  • -
mikus - zdjęcie mikus 07.10.2009

Taki błąd Kompilator, nie można się poddawać heheh ;)
Odpowiedz

  • +
  • -
BW:*|4fun - zdjęcie BW:*|4fun 07.10.2009

ej to jak wam smiga, to dajcie amxx ;]
Odpowiedz

  • +
  • -
mgr inż. Pavulon - zdjęcie mgr inż. Pavulon 07.10.2009

Wklej tu kod: http://amxx.pl/kompilator.php
Działa na 100%
Odpowiedz

  • +
  • -
BW:*|4fun - zdjęcie BW:*|4fun 10.10.2009

ok dzięki działa.
Odpowiedz
Zablokowany