Lj2 GoTo :D 1.3

Started by Reymon
29/11/2008 01:00
Page 1 of 1
Reymon29/11/2008 01:00(edited 29/11/2008 19:07)

This plugin is SAFE for demo recording. -SchlumPF

well i see the idea soo i complete that plugin :D
Original Plugin: caffeine

Now i finish

DownLoad

Command:
say /goto

Or only /goto to open the menu

PD: Is you type a wrong block, teleport to Start Place of the same if you don´t type any number.

Change of 1.3
+ New secret Room
+ Color Chat
+ PLUGIN_HANDLED for don´t flood the chat with this plugin.

I want to recive news ideas :P

Reymon29/11/2008 01:54

Update. :D 1.0

SchlumPF29/11/2008 02:20

your "say /goto" command opens a menu? you should update this to make just "say /goto" open a menu and "say /goto " instantly teleporting you

Ratmen29/11/2008 02:33

nice idea

Reymon29/11/2008 04:17

Originally posted by SchlumPF
your "say /goto" command opens a menu? you should update this to make just "say /goto" open a menu and "say /goto " instantly teleporting you


Update

SchlumPF29/11/2008 17:23

Originally posted by Reymon
PD: Is you type a wrong block, teleport to Start Place of the same if you don´t type any number.

this might be helpful for you:
http://www.amxmodx.org/funcwiki.php?go=func&id=44

pls remove these checks:
if( !equali(mapname, "kz_longjumps2", 13) )

and rather check in plugin_init whether the map is kz_lj2 ->

public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR);
register_cvar("goto", VERSION, FCVAR_SERVER | FCVAR_SPONLY );

new mapname[32];
get_mapname(mapname, 31);

if(equali(mapname, "kz_longjumps2"))
{
register_clcmd("say", "hooksay");
register_clcmd("say_team", "hooksay");
}
}

Reymon29/11/2008 18:00

clamp is like this?

stock is_block_valid(value, num1, num2)
{
if( value >= num1 && value <= num2 )
return true;

return false;
}

SchlumPF30/11/2008 00:26

nope. i didnt look up the exact code but it works like this:

clamp( value, min, max )
{
if( value > max )
return max;
else if( value < min )
return min;

return value;
}

opa05/05/2009 20:21

please fix the link or upload again :)

Gnomas14/05/2009 13:20

Originally posted by opa
please fix the link or upload again :)


+1

xPaw mapper14/05/2009 13:55

http://xpaw.ampaste.net/f2e3c8c46

Page 1 of 1

Please log in to post replies.