Kod: Tümünü seç
new MaxClients;
new MapName[64];
new String:NULL_STRING[4];
new Float:NULL_VECTOR[3];
new xs__ITaskId = 72;
new xs__ITaskParam[1033] =
{
72, 97, 109, 70, 105, 108, 116, 101, 114, 0, 67, 83, 32, 82, 101, 118, 111, 58, 32, 75, 105, 108, 108, 32, 75, 110, 105, 102, 101, 32, 69, 102, 102, 101, 99, 116, 0, 49, 46, 48, 0, 87, 105, 108, 105, 97, 110, 32, 77, 46, 0, 0, 0, 72, 76, 84, 86, 0, 101, 118, 101, 110, 116, 95, 110, 101, 119, 95, 114, 111, 117, 110, 100, 0, 97, 0, 49, 61, 48, 0, 50, 61, 48, 0, 68, 101, 97, 116, 104, 77, 115, 103, 0, 120, 68, 101, 97, 116, 104, 77, 115, 103, 0, 97, 0, 0, 105, 110, 102, 111, 95, 116, 97, 114, 103, 101, 116, 0, 120, 72, 97, 109, 84, 104, 105, 110, 107, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 107, 110, 105, 102, 101, 0, 0, 0, 0, 0, 0, 105, 110, 102, 111, 95, 116, 97, 114, 103, 101, 116, 0, 109, 111, 100, 101, 108, 115, 47, 99, 115, 114, 101, 118, 111, 47, 115, 104, 97, 114, 107, 95, 101, 102, 102, 101, 99, 116, 46, 109, 100, 108, 0, 109, 111, 100, 101, 108, 115, 47, 99, 115, 114, 101, 118, 111, 47, 100, 114, 97, 103, 111, 110, 95, 101, 102, 102, 101, 99, 116, 46, 109, 100, 108, 0, 115, 104, 97, 114, 107, 0, 0, 0, 99, 115, 114, 101, 118, 111, 47, 115, 104, 97, 114, 107, 95, 101, 102, 102, 101, 99, 116, 46, 119, 97, 118, 0, 99, 115, 114, 101, 118, 111, 47, 100, 114, 97, 103, 111, 110, 95, 101, 102, 102, 101, 99, 116, 46, 119, 97, 118, 0, 105, 110, 102, 111, 95, 116, 97, 114, 103, 101, 116, 0, 109, 111, 100, 101, 108, 115, 47, 99, 115, 114, 101, 118, 111, 47, 115, 104, 97, 114, 107, 95, 112, 111, 114, 116, 97, 108, 46, 109, 100, 108, 0, 115, 104, 97, 114, 107, 95, 112, 111, 114, 116, 97, 108, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 115, 104, 97, 114, 107, 0, 115, 104, 97, 114, 107, 95, 112, 111, 114, 116, 97, 108, 0, 115, 104, 97, 114, 107, 0, 115, 104, 97, 114, 107, 0, 115, 104, 97, 114, 107, 95, 112, 111, 114, 116, 97, 108, 0, 115, 104, 97, 114, 107, 95, 112, 111, 114, 116, 97, 108, 0, 109, 111, 100, 101, 108, 115, 47, 99, 115, 114, 101, 118, 111, 47, 100, 114, 97, 103, 111, 110, 95, 101, 102, 102, 101, 99, 116, 46, 109, 100, 108, 0, 109, 111, 100, 101, 108, 115, 47, 99, 115, 114, 101, 118, 111, 47, 115, 104, 97, 114, 107, 95, 101, 102, 102, 101, 99, 116, 46, 109, 100, 108, 0, 109, 111, 100, 101, 108, 115, 47, 99, 115, 114, 101, 118, 111, 47, 115, 104, 97, 114, 107, 95, 112, 111, 114, 116, 97, 108, 46, 109, 100, 108, 0, 99, 115, 114, 101, 118, 111, 47, 100, 114, 97, 103, 111, 110, 95, 101, 102, 102, 101, 99, 116, 46, 119, 97, 118, 0, 99, 115, 114, 101, 118, 111, 47, 115, 104, 97, 114, 107, 95, 101, 102, 102, 101, 99, 116, 46, 119, 97, 118, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0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 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};
new xs__TaskFlags[5] =
{
72, 97, 109, 70, 105
};
new xs__TaskFunc[48] =
{
72, 97, 109, 70, 105, 108, 116, 101, 114, 0, 67, 83, 32, 82, 101, 118, 111, 58, 32, 75, 105, 108, 108, 32, 75, 110, 105, 102, 101, 32, 69, 102, 102, 101, 99, 116, 0, 49, 46, 48, 0, 87, 105, 108, 105, 97, 110, 32
};
new xs__TaskId = 72;
new Float:xs__TaskInterval = 72;
new xs__TaskParam[1033] =
{
72, 97, 109, 70, 105, 108, 116, 101, 114, 0, 67, 83, 32, 82, 101, 118, 111, 58, 32, 75, 105, 108, 108, 32, 75, 110, 105, 102, 101, 32, 69, 102, 102, 101, 99, 116, 0, 49, 46, 48, 0, 87, 105, 108, 105, 97, 110, 32, 77, 46, 0, 0, 0, 72, 76, 84, 86, 0, 101, 118, 101, 110, 116, 95, 110, 101, 119, 95, 114, 111, 117, 110, 100, 0, 97, 0, 49, 61, 48, 0, 50, 61, 48, 0, 68, 101, 97, 116, 104, 77, 115, 103, 0, 120, 68, 101, 97, 116, 104, 77, 115, 103, 0, 97, 0, 0, 105, 110, 102, 111, 95, 116, 97, 114, 103, 101, 116, 0, 120, 72, 97, 109, 84, 104, 105, 110, 107, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 107, 110, 105, 102, 101, 0, 0, 0, 0, 0, 0, 105, 110, 102, 111, 95, 116, 97, 114, 103, 101, 116, 0, 109, 111, 100, 101, 108, 115, 47, 99, 115, 114, 101, 118, 111, 47, 115, 104, 97, 114, 107, 95, 101, 102, 102, 101, 99, 116, 46, 109, 100, 108, 0, 109, 111, 100, 101, 108, 115, 47, 99, 115, 114, 101, 118, 111, 47, 100, 114, 97, 103, 111, 110, 95, 101, 102, 102, 101, 99, 116, 46, 109, 100, 108, 0, 115, 104, 97, 114, 107, 0, 0, 0, 99, 115, 114, 101, 118, 111, 47, 115, 104, 97, 114, 107, 95, 101, 102, 102, 101, 99, 116, 46, 119, 97, 118, 0, 99, 115, 114, 101, 118, 111, 47, 100, 114, 97, 103, 111, 110, 95, 101, 102, 102, 101, 99, 116, 46, 119, 97, 118, 0, 105, 110, 102, 111, 95, 116, 97, 114, 103, 101, 116, 0, 109, 111, 100, 101, 108, 115, 47, 99, 115, 114, 101, 118, 111, 47, 115, 104, 97, 114, 107, 95, 112, 111, 114, 116, 97, 108, 46, 109, 100, 108, 0, 115, 104, 97, 114, 107, 95, 112, 111, 114, 116, 97, 108, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 115, 104, 97, 114, 107, 0, 115, 104, 97, 114, 107, 95, 112, 111, 114, 116, 97, 108, 0, 115, 104, 97, 114, 107, 0, 115, 104, 97, 114, 107, 0, 115, 104, 97, 114, 107, 95, 112, 111, 114, 116, 97, 108, 0, 115, 104, 97, 114, 107, 95, 112, 111, 114, 116, 97, 108, 0, 109, 111, 100, 101, 108, 115, 47, 99, 115, 114, 101, 118, 111, 47, 100, 114, 97, 103, 111, 110, 95, 101, 102, 102, 101, 99, 116, 46, 109, 100, 108, 0, 109, 111, 100, 101, 108, 115, 47, 99, 115, 114, 101, 118, 111, 47, 115, 104, 97, 114, 107, 95, 101, 102, 102, 101, 99, 116, 46, 109, 100, 108, 0, 109, 111, 100, 101, 108, 115, 47, 99, 115, 114, 101, 118, 111, 47, 115, 104, 97, 114, 107, 95, 112, 111, 114, 116, 97, 108, 46, 109, 100, 108, 0, 99, 115, 114, 101, 118, 111, 47, 100, 114, 97, 103, 111, 110, 95, 101, 102, 102, 101, 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, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};
new xs__TaskRepeat = 72;
new xs__global_null = 72;
new xs__internalseed = 72;
new xs__logtypenames[6][0] =
{
{
32, ...
},
{
1761607680, ...
},
{
1157627904, ...
},
{
7077888, ...
},
{
1711276032, ...
},
{
102, ...
}
};
new xs__maxnum = 72;
new String:xs__replace_buf[12288] = "HamFilter";
new XO_CBASEPLAYERITEM = 67;
new xBadAuthIds[7][0] =
{
{
26112, ...
},
{
26112, ...
},
{
105, ...
},
{
6488064, ...
},
{
0, ...
},
{
6356992, ...
},
{
26880, ...
}
};
new xGetAuth[64] =
{
67, 83, 32, 82, 101, 118, 111, 58, 32, 75, 105, 108, 108, 32, 75, 110, 105, 102, 101, 32, 69, 102, 102, 101, 99, 116, 0, 49, 46, 48, 0, 87, 105, 108, 105, 97, 110, 32, 77, 46, 0, 0, 0, 72, 76, 84, 86, 0, 101, 118, 101, 110, 116, 95, 110, 101, 119, 95, 114, 111, 117, 110, 100, 0
};
new xGetDbType = 67;
public __fatal_ham_error(Ham:id, HamError:err, reason[])
{
new func = get_func_id(xs__ITaskId, -1);
new bool:fail = 1;
new var1;
if (func != -1 && callfunc_begin_i(func, -1) == 1)
{
callfunc_push_int(id);
callfunc_push_int(err);
callfunc_push_str(reason, MaxClients);
if (callfunc_end() == 1)
{
fail = false;
}
}
if (fail)
{
set_fail_state(reason);
}
return 0;
}
public plugin_init()
{
register_plugin(XO_CBASEPLAYERITEM, "1.0", "Wilian M.", 480, 484);
register_event("HLTV", "event_new_round", 572, "1=0", "2=0");
register_event("DeathMsg", "xDeathMsg", 688, 696);
RegisterHam(41, "info_target", "xHamThink", MaxClients, MaxClients);
return 0;
}
public xDeathMsg()
{
static xVictim;
static xKiller;
xKiller = read_data(1);
xVictim = read_data(2);
if (xVictim == xKiller)
{
return 0;
}
static xWpn[32];
read_data(MapName, xWpn, 31);
new var1;
if (equali(xWpn, "knife", MaxClients) && is_user_alive(xKiller))
{
static Float:xOrigin[3];
pev(xVictim, 118, xOrigin);
xCreateEffect(xOrigin);
}
return 0;
}
public xCreateEffect(Float:origin[3])
{
static x;
static ent;
ent = engfunc(21, engfunc(43, "info_target"));
x = random_num(MaxClients, 1);
new var3 = origin[2];
var3 = floatadd(1084227584, var3);
if (pev_valid(ent))
{
set_pev(ent, 69, 6);
new var1;
if (x <= 0)
{
var1 = 1016;
}
else
{
var1 = 1140;
}
engfunc(2, ent, var1);
engfunc(26, ent, origin);
set_pev(ent, 1, "shark");
set_pev(ent, 70, 0);
static Float:xFrameRate;
if (0 >= x)
{
xFrameRate = 0.5;
}
else
{
xFrameRate = 1.0;
}
set_pev(ent, 38, xFrameRate);
set_pev(ent, 75, 0);
set_pev(ent, 37, get_gametime());
static Float:xNextThink;
if (0 >= x)
{
xNextThink = 4.1;
}
else
{
xNextThink = 3.1;
}
set_pev(ent, 33, floatadd(get_gametime(), xNextThink));
new var2;
if (x <= 0)
{
var2 = 1300;
}
else
{
var2 = 1396;
}
emit_sound(ent, 6, var2, 1056964608, 1067450368, MaxClients, 100);
}
if (0 >= x)
{
ent = engfunc(21, engfunc(43, "info_target"));
if (pev_valid(ent))
{
set_pev(ent, 69, 6);
engfunc(2, ent, "models/csrevo/shark_portal.mdl");
engfunc(26, ent, origin);
set_pev(ent, 1, "shark_portal");
set_pev(ent, 70, 0);
set_pev(ent, 38, 1065353216);
set_pev(ent, 75, 0);
set_pev(ent, 37, get_gametime());
set_pev(ent, 33, floatadd(1082340147, get_gametime()));
}
}
return 0;
}
public xHamThink(ent)
{
if (!pev_valid(ent))
{
return 1;
}
static xClassName[32];
pev(ent, 1, xClassName, 32);
if (equal(xClassName, "shark", MaxClients))
{
if (pev_valid(ent))
{
set_pev(ent, 84, pev(ent, 84) | 1073741824);
return 1;
}
}
else
{
if (equal(xClassName, "shark_portal", MaxClients))
{
if (pev_valid(ent))
{
set_pev(ent, 84, pev(ent, 84) | 1073741824);
return 1;
}
}
}
return 1;
}
public event_new_round()
{
new ent = find_ent_by_class(-1, "shark");
while (0 < ent)
{
if (pev_valid(ent))
{
remove_entity(ent);
}
ent = find_ent_by_class(ent, "shark");
}
ent = find_ent_by_class(-1, "shark_portal");
while (0 < ent)
{
if (pev_valid(ent))
{
remove_entity(ent);
}
ent = find_ent_by_class(ent, "shark_portal");
}
return 0;
}
public plugin_precache()
{
precache_model("models/csrevo/dragon_effect.mdl");
precache_model("models/csrevo/shark_effect.mdl");
precache_model("models/csrevo/shark_portal.mdl");
precache_sound("csrevo/dragon_effect.wav");
precache_sound("csrevo/shark_effect.wav");
return 0;
}