- 29/1/10
- 1,430
- 66
@kakaa96 làm dc cái hiện class khi lây nhiễm chưa ?
Thêm đoạn này vào cái forward infect nè: (trong bio_main)
PHP:if(g_classcount > 1) display_classmenu(id, g_menuposition[id] = 0)
sao tớ ko thấy cái bio_main đâu 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.
@kakaa96 làm dc cái hiện class khi lây nhiễm chưa ?
Thêm đoạn này vào cái forward infect nè: (trong bio_main)
PHP:if(g_classcount > 1) display_classmenu(id, g_menuposition[id] = 0)
#include <amxmodx>
#define PLUGIN "0"
#define VERSION "1.0"
#define AUTHOR "NST"
public plugin_natives()
{
register_native("nst_get", "natives_get", 1)
}
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public natives_get(str[], len)
{
format(str, len, "str")
}
#include <amxmodx>
#include <0>
#define PLUGIN "1"
#define VERSION "1.0"
#define AUTHOR "NST"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_concmd("ww", "ww")
}
public ww(id)
{
new str[64]
nst_get(str, charsmax(str))
client_print(id, print_chat, "[%s]", str)
}
native nst_get(str[], len);
sao tớ ko thấy cái bio_main đâu nhỉ
xem cái này nè http://wiki.alliedmods.net/Half-Life_1_Game_EventsAi hướng dẫn dias:
cái:
message_begin()
...
message_end()
không ?
cái đó cũng làm dc nhiều thứ đấy. chứ. Tạo spr ra map, hiện progress bar Hồi sinh khi death trong CSDM,...
vậy nó như thế nào ?
ak mà disbled 1 mod trong Zombie làm thế nào nhỉ
advanced_weapon_tracers.amxx splugin nhìn thấy đường đạn là gì nhỉ ?
chắc ko bỏ đc bởi vì đã register class trong main

/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <fakemeta>
#include <zombieplague>
#define PLUGIN "Amx Dodge"
#define VERSION "0.1.0"
#define AUTHOR "PomanoB"
#define TIME_INTERVAL 0.35
#define TIME_RESET 2.0
#define ADD_BUTTON(%1,%2) g_key[%1][0]=g_key[id][1];g_key[%1][1]=%2;
#define RESET_BUTTON(%1) g_key[%1][0]=0;g_key[%1][1]=0;
new bool:g_dodge[33];
new Float:g_time[33];
new g_key[33][2];
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
}
public client_PreThink(id)
{
if (!is_user_alive(id) || zp_get_user_zombie(id))
return PLUGIN_CONTINUE
if (g_dodge[id])
return PLUGIN_CONTINUE
new button=pev(id,pev_button)
if (button==0)
return PLUGIN_CONTINUE
new oldbutton=pev(id,pev_oldbuttons);
if ((button & IN_FORWARD) && !(oldbutton & IN_FORWARD))
{
ADD_BUTTON(id,'w')
}
else if ((button & IN_BACK) && !(oldbutton & IN_BACK))
{
ADD_BUTTON(id,'s')
}
else if ((button & IN_MOVELEFT) && !(oldbutton & IN_MOVELEFT))
{
ADD_BUTTON(id,'a')
}
else if ((button & IN_MOVERIGHT) && !(oldbutton & IN_MOVERIGHT))
{
ADD_BUTTON(id,'d')
}
else
return PLUGIN_CONTINUE;
new Float:time_out=get_gametime();
if ( (!g_time[id]) || (time_out-g_time[id] >TIME_INTERVAL))
{
g_time[id]=time_out
RESET_BUTTON(id)
return PLUGIN_CONTINUE;
}
g_time[id]=time_out;
if (equali(g_key[id],"ww"))
{
g_dodge[id]=true
RESET_BUTTON(id)
g_time[id]=0.0;
give_dodge(id,0);
set_task(TIME_RESET,"reset_dodge",id)
}
else if (equali(g_key[id],"ss"))
{
g_dodge[id]=true
RESET_BUTTON(id)
g_time[id]=0.0;
give_dodge(id,1);
set_task(TIME_RESET,"reset_dodge",id)
}
else if (equali(g_key[id],"aa"))
{
g_dodge[id]=true
RESET_BUTTON(id)
g_time[id]=0.0;
give_dodge(id,3);
set_task(TIME_RESET,"reset_dodge",id)
}
else if (equali(g_key[id],"dd"))
{
g_dodge[id]=true
RESET_BUTTON(id)
g_time[id]=0.0;
give_dodge(id,2);
set_task(TIME_RESET,"reset_dodge",id)
}
return PLUGIN_CONTINUE;
}
public give_dodge(id,n)
{
new coord[3];
new aiming[3];
get_user_origin(id,coord)
get_user_origin(id,aiming,3);
new Float:orign[3];
new Float:len=floatabs(floatsqroot (float((aiming[0]-coord[0])*(aiming[0]-coord[0])+(aiming[1]-coord[1])*(aiming[1]-coord[1])+(aiming[2]-coord[2])*(aiming[2]-coord[2]))))/10;
new i;
new Float:temp;
for (i=0;i<3;i++)
{
orign[i]=float(aiming[i]-coord[i])/len;
}
if (n==1)
{
orign[0]=-orign[0];
orign[1]=-orign[1];
}
else if (n==2)
{
temp=orign[0];
orign[0]=orign[1];
orign[1]=-temp;
}
else if (n==3)
{
temp=orign[0];
orign[0]=-orign[1];
orign[1]=temp;
}
new Float:vel[3]
vel[0] = orign[0]*60.0;
vel[1] = orign[1]*60.0;
vel[2] = 250.0;
set_pev(id, pev_velocity, vel)
}
public reset_dodge(id)
{
g_dodge[id]=false;
}