Semiclip..

17/12/2006 15:25
Read-Only
Page 1 of 1
balky mapper Tournament #117/12/2006 15:25

hi all :)
I just wanted to know if somebody can make plugin for me, only semiclip :)

thx :x

theL0w^17/12/2006 16:55

included in proKreedz?

balky mapper Tournament #117/12/2006 17:01

no apart no prokreedz or kz_multiplugin :)

maniac17/12/2006 17:43

This is the source of the noblock plugin of teame06's Kz Jump Plugin:
(amxx 1.75a or higher)
don't know if it works...

http://forums.alliedmods.net/showthread.php?p=360835
---

#include
#include

#define BOOSTID 1538

new paused[33];

new bool:boost[33];
new boosttimer;
new kz_enabled;

public plugin_init()
{
register_plugin("KZ No Block", KZ_VERSION, "teame06");

register_saycmd("boost", "cmdBoost", -1, "");
register_saycmd("toggle_boost", "cmdToggleBoost", -1, "");

boosttimer = get_cvar_pointer("kz_boosttime");
kz_enabled = get_cvar_pointer("kz_enabled");
}

public kz_Init(_state)
{
if(!_state)
{
pause("a");
return;
}

if(!get_pcvar_num(kz_enabled))
return;

register_forward(FM_StartFrame, "fm_startframe");
}

public plugin_natives()
{
register_library("kz");
register_native("IsPlayerPause", "native_IsPlayerPause");
register_native("SetPlayerPause", "native_SetPlayerPause");

register_native("SetPlayerNotSolid", "native_not_solid");
register_native("SetPlayerSolid", "native_solid");
}

public native_solid(id, nums)
{
if(nums != 1)
return log_error(AMX_ERR_NATIVE, "Bad native parameters");

_SetPlayerSolid(get_param(1));
return 0;
}

public native_not_solid(id, nums)
{
if(nums != 1)
return log_error(AMX_ERR_NATIVE, "Bad native parameters");

_SetPlayerNotSolid(get_param(1));
return 0;
}

_SetPlayerSolid(id)
{
if(is_user_alive(id))
{
_set_rendering(id);
set_pev(id, pev_solid, SOLID_BBOX);
}
}

_SetPlayerNotSolid(id)
{
if(is_user_alive(id))
{
_set_rendering(id, kRenderFxDistort, 0, 0, 0, kRenderTransAdd, 127);
set_pev(id, pev_solid, SOLID_NOT);
}
}

public native_IsPlayerPause(id, nums)
{
if(nums != 1)
return log_error(AMX_ERR_NATIVE, "Bad native parameters");

return paused[get_param(1)];
}

public native_SetPlayerPause(id, nums)
{
if(nums != 2)
return log_error(AMX_ERR_NATIVE, "Bad native parameters");

new index = get_param(1);

if(!is_user_alive(id))
return 0;

new mode = get_param(2);

paused[index] = (mode) ? true : false;

return 1;
}

public client_disconnect(id)
{
boost[id] = false;
paused[id] = false;

remove_task(id + BOOSTID);
}

public cmdBoost(id)
{
if(get_pcvar_num(kz_enabled))
{
new boostid = id + BOOSTID;

if(!boost[id])
{
boost[id] = true;
set_task(get_pcvar_float(boosttimer), "cmdUNBoost", boostid);
kz_ShowSyncHudMsg(id, 128, 0, 128, 0.43, 0.89, "Boost is enabled.");
}
else
{
boost[id] = false;
remove_task(boostid);
kz_ShowSyncHudMsg(id, 128, 0, 128, 0.43, 0.89, "Boost is disabled.");
}
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}

public cmdUNBoost(boost_id)
{
if(kz_enabled)
{
new id = boost_id - BOOSTID;

boost[id] = false;
kz_ColorChat(id, green, "[kz] Boost is disabled because timer has ran out.");
}
}

public cmdToggleBoost(id)
{
if(get_pcvar_num(kz_enabled))
{
if(!boost[id])
{
boost[id] = true;
kz_ShowSyncHudMsg(id, 128, 0, 128, 0.30, 0.89, "Boost is enabled. To disable type /boost");
}
else
{
boost[id] = false;
kz_ShowSyncHudMsg(id, 128, 0, 128, 0.43, 0.89, "Boost is disabled.");
}
return PLUGIN_HANDLED;
}
return PLUGIN_CONTINUE;
}

public fm_startframe()
{
if(get_pcvar_num(kz_enabled))
{
static players[32], num, i, j, player, person;
static Float:player_origin[3], Float:person_origin[3], Float:player_origin2[3], Float:person_origin2[3];
get_players(players, num, "ach");

for(i = 0; i < num; i++)
{
player = players;

if(paused[player])
continue;

_SetPlayerSolid(player);
pev(player, pev_origin, player_origin);

player_origin2[2] = player_origin[2];
player_origin[2] = 0.0;

for(j = 0; j < num; j++)
{
person = players[j];

if(player == person || paused[person])
continue;

if(boost[player] && boost[person] && IsPlayerSolid(player) && IsPlayerSolid(person))
break;

pev(person, pev_origin, person_origin);
person_origin2[2] = person_origin[2];
person_origin[2] = 0.0;

if((vector_distance(player_origin, person_origin) < 90 && vector_distance(player_origin2, person_origin2) < 110))
{
_SetPlayerNotSolid(player);
_SetPlayerNotSolid(person);
break;
}
}
}
}
return FMRES_IGNORED;
}

IsPlayerSolid(id)
{
if(pev(id, pev_solid) == SOLID_BBOX)
return 1;

return 0;
}

// Not sure if this function is useful.
stock _check_collision ( entity1, entity2 )
{
// supplied with invalid entities
if( !pev_valid(entity1) || !pev_valid(entity2) )
return 0;

// retrieve absolutes
static Float:absmin1[3], Float:absmax1[3], Float:absmin2[3], Float:absmax2[3];

pev(entity1, pev_absmin, absmin1);
pev(entity1, pev_absmax, absmax1);
pev(entity2, pev_absmin, absmin2);
pev(entity2, pev_absmax, absmax2);

// not in bounds
if( absmin1[0] > absmax2[0] ||
absmin1[1] > absmax2[1] ||
absmin1[2] > absmax2[2] ||
absmax1[0] < absmin2[0] ||
absmax1[1] < absmin2[1] ||
absmax1[2] < absmin2[2] )
return 0;

return 1;
}

// Taken from csdm_protection.sma by BAILOPAN.
stock _set_rendering(index, fx=kRenderFxNone, r=255, g=255, b=255, render=kRenderNormal, amount=16)
{
set_pev(index, pev_renderfx, fx);
new Float:RenderColor[3];
RenderColor[0] = float(r);
RenderColor[1] = float(g);
RenderColor[2] = float(b);
set_pev(index, pev_rendercolor, RenderColor);
set_pev(index, pev_rendermode, render);
set_pev(index, pev_renderamt, float(amount));

return 1;
}

---
[ Edited Sun Dec 17 2006, 05:46PM ]

balky mapper Tournament #117/12/2006 18:04

maniac when i compile it its say "cannot read from " what that mean?:)

maniac17/12/2006 18:40

hmmm .. i don't know.
try to download the complete plugin and only add the
kz_noblock.amxx to you plugins.ini
or wait for better solutions ^_^

http://forums.alliedmods.net/showthread.php?p=360835
[ Edited Sun Dec 17 2006, 06:41PM ]

(M.E.O.)St. Jimmy17/12/2006 18:51

Is posible to make semiclip, but don't bug the entities like doors or teleports??? (example: if 2 players jumps to the same bhop box at the same time it doesn't move)

PrEn1uMz17/12/2006 19:29

cannot read from = u dont have kz.inc

balky mapper Tournament #117/12/2006 19:32

from where can i find kz.inc ? :)

trb17/12/2006 19:35

dl the hole plugin there in /scripting/inc/ the kz.inc must be inside

balky mapper Tournament #117/12/2006 20:56

aaa i find it :) thx for help all :x

JohnnyB mapper17/12/2006 20:57

This was the one from ProKreedz, but I made it into a separate plugin, it should work I used to use it on my server.


#include
#include

#define NOBLOCK_DISTANCE 120.0

new bool:noblock[32]
new bool:isplayersolid[32]

new kz_autosemiclip
new kz_autotransparency

public plugin_init() {
register_plugin("Auto Semiclip","1.2","JB")

register_clcmd("say /solid","kz_setsolid")

kz_autosemiclip = register_cvar("kz_autosemiclip","1")
kz_autotransparency = register_cvar("kz_autotransparency","1")

set_task(0.1,"noblock_task",1000,"",0,"ab")
}

public kz_setsolid(id) {
isplayersolid[id] = true
client_print(id,print_chat,"[KZ Timer] SemiClip Disabled")
set_task(5.0,"stop_clip",id)
return PLUGIN_HANDLED
}

public stop_clip(id) {
isplayersolid[id] = false
return PLUGIN_HANDLED
}

public noblock_task() {
if(get_pcvar_num(kz_autosemiclip) > -1) {
new bool:solid[32]
new Float:origin[3]
new Float:vorigin[3]
for(new x=1;x<=get_maxplayers();x++) {
if(is_user_connected(x) && is_user_alive(x)) {
if(get_pcvar_num(kz_autosemiclip) == 1 || noblock[x-1]) {
entity_get_vector(x,EV_VEC_origin,origin)
for(new i=1;i<=get_maxplayers();i++) {
if(x != i && is_user_connected(i) && is_user_alive(i)) {
entity_get_vector(i,EV_VEC_origin,vorigin)
if(get_distance_f(origin,vorigin) <= NOBLOCK_DISTANCE) {
entity_set_int(x,EV_INT_solid,SOLID_NOT)
entity_set_int(i,EV_INT_solid,SOLID_NOT)

if(get_pcvar_num(kz_autotransparency) == 1) {
set_rendering(x,kRenderFxNone,0,0,0,kRenderTransAlpha,60)
set_rendering(i,kRenderFxNone,0,0,0,kRenderTransAlpha,60)
}

solid[x-1] = true
solid[i-1] = true
}
else if(!solid[i-1]) {
entity_set_int(i,EV_INT_solid,SOLID_BBOX)
glow(i)
}
}
}
}
else if(!solid[x-1]) {
entity_set_int(x,EV_INT_solid,SOLID_BBOX)
glow(x)
}
}
}
}
else {
for(new i=1;i<=get_maxplayers();i++) {
if(is_user_connected(i) && is_user_alive(i)) {
entity_set_int(i,EV_INT_solid,SOLID_BBOX)
glow(i)
}
}
}
}

public glow(id) {
new colors[3]

colors = {0,0,0}
set_rendering(id,kRenderFxGlowShell,colors[0],colors[1],colors[2],kRenderNormal,25)
}

public client_disconnect(id) {
noblock[id-1] = true
}

public client_putinserver(id) {
noblock[id-1] = true
}

balky mapper Tournament #117/12/2006 21:10

lol Johnny Blaze thx man that plugin is great :)

d4vid_tm16/08/2007 15:53

who can do a plugin for kz witch this comand ? ; all plugin works pls
/boost , /cp , /tp and another , /pause , /unpause , /top15 and all works pls who can?

Z0ck3rOO716/08/2007 16:11

try this http://xtreme-jumps.eu/download.php?view.532

d4vid_tm16/08/2007 16:21

i try plugin from maniac but when i want comiled he say
/home/groups/amxmodx/tmp3/phpXAGxMD.sma(2) : fatal error 100: cannot read from file: "kz"

Compilation aborted.
1 Error.

and i found kz.inc , but what i do witch him? when i move it? how i compiled say tutorial...

d4vid_tm17/08/2007 06:58

zock3r007 its not good he have just2,3 comands :( another plugin pls witch /boost , /top15 , /pause , /tp , /cp .... or say what i must to do to work kz_jump_plugin he dont work /boost , why? pls say what i most do?

d4vid_tm18/08/2007 12:24

please sambady pleassseee

d4vid_tm20/08/2007 10:53

??? come sambady???? come mans

dEMolite mapper20/08/2007 11:26

edit button please and stop bumping old threads.

get prokreedz or get the kz jump plugin.
and don't ask me how to get them use a search engine like google.

Page 1 of 1