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ú sai rồi, nếu làm như vậy thì rất ảo. Ví dụ , trong CS RED, cây Katana nó chém ngang, vậy thì có 1 thằng đứng trước mặt mình, nhưng nó đứng thấp hơn mình, mặc dù mình vẫn thấy nó, thì mình cũng không chém trúng nó được.
Thuật toán chém dao , anh xây dựng dựa theo hình học không gian lớp 10. Viết phương trình đường thẳng không gian, tìm tọa độ giao điểm![]()
g00d job :). Mai down về sẽ đú phát xem^
- Tự làm. Theo đơn đặt hàng của một vị khách... Lấy mode này trong CF. Zombie Mode AI. ZS nó khác xa cái AI này

Buồn buồn ngồi share cái này vì nó ko work cho hlds...
- Tên plugin: Zombie Mode AI
- Loại: Chế Độ
- Công dụng: Giống như Zombie Scenario của CSO, giống như AI MOd của CF,... người chơi sẽ phải đối mặt với 1 đám zombie từ nơi khác tới... Chúng đi lang thang, không có ai điểu khiển... Thấy người là đi theo giết. Mỗi 1 round là zb sẽ tăng lên... Round thứ 12 là 200 con zb nếu may mắn thì gặp boss. Bên giữa sẽ có thùng đạn cho mọi người lấy đạn.
- Author: Dias (CODE BY DIAS)
- Cvar: Plugin này không có cvar, mọi điều chỉnh trong file sma
- Note: Plugin này không hoạt động đối với hlds
- Video Test:
[video=youtube;AaS-NMVQ2f8]http://www.youtube.com/watch?v=AaS-NMVQ2f8[/url][/video]
- Bao Gồm: Source + Resource
- Hướng dẫn: có hướng dẫn cài, và tạo map.
- Yêu Cầu: Có Module Orpheu
Download (DropBox.Com)
/* Script generated by Pawn Studio */
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "TDM Weapon"
#define AUTHOR "Bui Duc Duy"
#define VERSION "1.0"
new mode , Nmode[10] , len
new wpn, clip, ammo
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("CurWeapon","event_CurWeapon","be","1=1")
}
public plugin_precache()
{
new FileSetting[128]
format(FileSetting,127,"addons/amxmodx/configs/BDD_GamePlay/GameBag.ini")
read_file(FileSetting,13,Nmode,63 , len)
mode = str_to_num(Nmode)
}
public event_CurWeapon(id)
{
if (mode == 0) return;
wpn = get_user_weapon(id, clip, ammo)
if (mode == 1)
{
if (wpn != CSW_AWP && wpn != CSW_SCOUT && wpn != CSW_SG550 && wpn != CSW_G3SG1)
{
strip_user_weapons(id)
give_item(id,"weapon_knife")
return
}
}
else if (mode == 2)
{
if (wpn != CSW_P228 && wpn != CSW_DEAGLE && wpn != CSW_GLOCK18 && wpn != CSW_USP && wpn != CSW_FIVESEVEN && wpn != CSW_ELITE)
{
strip_user_weapons(id)
give_item(id,"weapon_knife")
return;
}
}
else if (mode == 3)
{
if (wpn != CSW_KNIFE)
{
strip_user_weapons(id)
give_item(id,"weapon_knife")
return;
}
}
}
Mấy bác sửa dùm em code này với (lỗi out put quá nhiều ED_Alloc : no free edicts)
PHP:/* Script generated by Pawn Studio */ #include <amxmodx> #include <amxmisc> #include <fun> #define PLUGIN "TDM Weapon" #define AUTHOR "Bui Duc Duy" #define VERSION "1.0" new mode , Nmode[10] , len new wpn, clip, ammo public plugin_init() { register_plugin(PLUGIN, VERSION, AUTHOR) register_event("CurWeapon","event_CurWeapon","be","1=1") } public plugin_precache() { new FileSetting[128] format(FileSetting,127,"addons/amxmodx/configs/BDD_GamePlay/GameBag.ini") read_file(FileSetting,13,Nmode,63 , len) mode = str_to_num(Nmode) } public event_CurWeapon(id) { if (mode == 0) return; wpn = get_user_weapon(id, clip, ammo) if (mode == 1) { if (wpn != CSW_AWP && wpn != CSW_SCOUT && wpn != CSW_SG550 && wpn != CSW_G3SG1) { strip_user_weapons(id) give_item(id,"weapon_knife") return } } else if (mode == 2) { if (wpn != CSW_P228 && wpn != CSW_DEAGLE && wpn != CSW_GLOCK18 && wpn != CSW_USP && wpn != CSW_FIVESEVEN && wpn != CSW_ELITE) { strip_user_weapons(id) give_item(id,"weapon_knife") return; } } else if (mode == 3) { if (wpn != CSW_KNIFE) { strip_user_weapons(id) give_item(id,"weapon_knife") return; } } }
change && to ||
try it. I hoped I helped.
/* Script generated by Pawn Studio */
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "TDM Weapon"
#define AUTHOR "Bui Duc Duy"
#define VERSION "1.0"
new mode , Nmode[10] , len
new wpn, clip, ammo
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("CurWeapon","event_CurWeapon","be","1=1")
}
public plugin_precache()
{
new FileSetting[128]
format(FileSetting,127,"addons/amxmodx/configs/BDD_GamePlay/GameBag.ini")
read_file(FileSetting,13,Nmode,63 , len)
mode = str_to_num(Nmode)
}
public event_CurWeapon(id)
{
if (mode == 0) return;
wpn = get_user_weapon(id, clip, ammo)
if (mode == 1)
{
if (wpn == CSW_AWP || wpn == CSW_SCOUT || wpn == CSW_SG550 || wpn == CSW_G3SG1) return;
strip_user_weapons(id)
give_item(id,"weapon_knife")
return
}
else if (mode == 2)
{
if (wpn == CSW_P228 || wpn == CSW_DEAGLE || wpn == CSW_GLOCK18 || wpn == CSW_USP || wpn == CSW_FIVESEVEN || wpn == CSW_ELITE) return
strip_user_weapons(id)
give_item(id,"weapon_knife")
return;
}
else if (mode == 3)
{
if (wpn == CSW_KNIFE) return
strip_user_weapons(id)
give_item(id,"weapon_knife")
return;
}
}

/* Script generated by Pawn Studio */
#include <amxmodx>
#include <amxmisc>
#include <fun>
#define PLUGIN "TDM Weapon"
#define AUTHOR "Bui Duc Duy"
#define VERSION "1.0"
new mode
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("CurWeapon","event_CurWeapon","be","1=1")
new FileSetting[128], Nmode[10] , len
format(FileSetting,127,"addons/amxmodx/configs/BDD_GamePlay/GameBag.ini")
read_file(FileSetting,13,Nmode,63 , len)
mode = str_to_num(Nmode)
}
public event_CurWeapon(id)
{
if (mode == 0) return;
new wpn, clip, ammo
wpn = get_user_weapon(id, clip, ammo)
if (mode == 1)
{
if (wpn == CSW_AWP || wpn == CSW_SCOUT || wpn == CSW_SG550 || wpn == CSW_G3SG1) return;
strip_user_weapons(id)
give_item(id,"weapon_knife")
return
}
else if (mode == 2)
{
if (wpn == CSW_P228 || wpn == CSW_DEAGLE || wpn == CSW_GLOCK18 || wpn == CSW_USP || wpn == CSW_FIVESEVEN || wpn == CSW_ELITE) return
strip_user_weapons(id)
give_item(id,"weapon_knife")
return;
}
else if (mode == 3)
{
if (wpn == CSW_KNIFE) return
strip_user_weapons(id)
give_item(id,"weapon_knife")
return;
}
}