buiducduy111
Dragon Quest
- 3/5/11
- 1,257
- 7
Em để là id < 33 ; id ++ thì cũng đúng mà :)
hay là thay vì thế mình get player nhỉ !
hay là thay vì thế mình get player nhỉ !
Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Chỉ ent nào có id từ 1 đến 32 thì mới là player thôi còn ngoài số đó như 33, 34, 35 thì ko phải player nên cs_set nó ko set dc

/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <cstrike>
#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_connect(id)
{
for (new i = 1; i <= 32; i++)
{
if (cs_get_user_team(i) == CS_TEAM_CT)
{
// blah
}
}
}
Sang alliedmoders tìm plugin Round Terminator và vấn đề sẽ được giải quyết.
public fw_TraceAttack(victim, attacker, Float:damage, Float:direction[3], tracehandle, damage_type)
{
if (victim == attacker || !is_user_connected(attacker))
return HAM_IGNORED;
if (g_is_user_zombie[attacker] && g_is_user_zombie[victim])
return HAM_SUPERCEDE;
if (cs_get_user_team(victim) == cs_get_user_team(attacker))
return HAM_SUPERCEDE
if (cs_get_user_team(victim) == CS_TEAM_T && cs_get_user_team(attacker) == CS_TEAM_CT)
{
static Float:velocity[3]
pev(victim, pev_velocity, velocity)
xs_vec_mul_scalar(direction, damage*2.0, direction)
direction[2] = velocity[2]
xs_vec_add(velocity, direction, direction)
set_pev(victim, pev_velocity, direction)
}
return HAM_IGNORED;
}
), Các bác biết vì sao không ?