[AMX] Tổng hợp Code, Plug do Mem chế hoặc giới thiệu

  • Thread starter Thread starter Orpheus
  • Ngày gửi Ngày gửi
P/s : ở đây ko ai là ko biết cả. Quan trọng họ có muốn giúp ko thôi.

PHP:
public get_id()
{
new aceid, max_score
for (new id=1;id<33;id++)
{
if (!is_user_connected(id) return
if (get_user_frags(id)>max_score)
 {
  aceid=id
  max_score = get_user_frags(id)
 }
}
return aceid
}

p/s: on mobile

Trích: ở đây ko ai là ko biết cả. Quan trọng họ có muốn giúp ko thôi.

thế vừa pm cậu trên yahoo là off ===========> troll tui àk!
 
Code của buiducduy có 1 sơ hở chết người, tự tìm hiểu tại sao nhé
h.gif
 
Code của buiducduy có 1 sơ hở chết người, tự tìm hiểu tại sao nhé
h.gif

Sặc là sao đây!!

Mới thử làm cái hiện spr nhưng ko được. Ai biết lỗi sửa + hd giùm em

Mã:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

new spr_current[33] = {0,...}
new time_show_set[33] = {0,...}
new iconstatus

public plugin_init() {
	
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	register_event("SendAudio", "eEndRound", "a", "2&%!MRAD_terwin", "2&%!MRAD_ctwin", "2&%!MRAD_rounddraw")
	register_event("RoundTime", "eNewRound", "bc")

	register_forward(FM_PlayerPreThink,"check_spr")
	iconstatus = get_user_msgid("StatusIcon")
	
}
public eEndRound(id, idspr)
{
	new sec_c = get_systime()
	time_show_set[id] = sec_c
	
	hide_spr(id,spr_current[id])
	spr_current[id] = idspr
	
	new spr_name[33]
	if (idspr==1) spr_name = "Round_1"
	if (idspr==2) spr_name = "Round_2"
	
	if(!(pev(id,pev_button) & FL_ONGROUND))
	{
		message_begin(MSG_ONE,iconstatus,{0,0,0},id)
		write_byte(1)
		write_string(spr_name)
		message_end()
	}
	return PLUGIN_CONTINUE
}

public eNewRound(id,idspr)
{
	new spr_name[33]
	if (idspr==1) spr_name = "Round_1"
	if (idspr==2) spr_name = "Round_2"
	
	if(!(pev(id,pev_button) & FL_ONGROUND))
	{
		message_begin(MSG_ONE,iconstatus,{0,0,0},id)
		write_byte(0)
		write_string(spr_name)
		message_end()
	}
	return PLUGIN_CONTINUE
}
 
Đã thử mọi cách, vẫn ko hiện dc, có khi nào bản của buiducduy gửi bị lỗi? Ai có bản gốc thì gửi mình nhé, link của djb không down dc nữa

Down cs40 fresh mà thử ! Như bản rip hồi trước cho cscfe cũng ko dùng được đâu!
 
Code của buiducduy có 1 sơ hở chết người, tự tìm hiểu tại sao nhé
h.gif

đại loại là thế. Đang onl mobile viết cho là tốt lắm rồi lại còn....

---------- Post added at 18:27 ---------- Previous post was at 18:21 ----------

Sặc là sao đây!!

Mới thử làm cái hiện spr nhưng ko được. Ai biết lỗi sửa + hd giùm em

Mã:
/* Plugin generated by AMXX-Studio */

#include <amxmodx>
#include <amxmisc>

#define PLUGIN "New Plug-In"
#define VERSION "1.0"
#define AUTHOR "author"

new spr_current[33] = {0,...}
new time_show_set[33] = {0,...}
new iconstatus

public plugin_init() {
	
	register_plugin(PLUGIN, VERSION, AUTHOR)
	
	register_event("SendAudio", "eEndRound", "a", "2&%!MRAD_terwin", "2&%!MRAD_ctwin", "2&%!MRAD_rounddraw")
	register_event("RoundTime", "eNewRound", "bc")

	register_forward(FM_PlayerPreThink,"check_spr")
	iconstatus = get_user_msgid("StatusIcon")
	
}
public eEndRound(id, idspr)
{
	new sec_c = get_systime()
	time_show_set[id] = sec_c
	
	hide_spr(id,spr_current[id])
	spr_current[id] = idspr
	
	new spr_name[33]
	if (idspr==1) spr_name = "Round_1"
	if (idspr==2) spr_name = "Round_2"
	
	if(!(pev(id,pev_button) & FL_ONGROUND))
	{
		message_begin(MSG_ONE,iconstatus,{0,0,0},id)
		write_byte(1)
		write_string(spr_name)
		message_end()
	}
	return PLUGIN_CONTINUE
}

public eNewRound(id,idspr)
{
	new spr_name[33]
	if (idspr==1) spr_name = "Round_1"
	if (idspr==2) spr_name = "Round_2"
	
	if(!(pev(id,pev_button) & FL_ONGROUND))
	{
		message_begin(MSG_ONE,iconstatus,{0,0,0},id)
		write_byte(0)
		write_string(spr_name)
		message_end()
	}
	return PLUGIN_CONTINUE
}

đọc sơ sơ thấy mấy lỗi này (đi copy paste cũng ko đủ :)) )
1. Thiếu thư viện
register_forward
pev ??
2. Spr_name = "round_2"
fix
PHP:
format(spr_name, charsmax(spr_name), "round_2")
3. Register_forward làm gì kia???
Còn nhiều lỗi lắm nói ko hết...
 
Chỉnh sửa cuối:
đại loại là thế. Đang onl mobile viết cho là tốt lắm rồi lại còn....
Tôi đang nói cái sơ hở chết người của cậu chứ ko bảo cậu có viết đc hay ko
h.gif
 
Tôi đang nói cái sơ hở chết người của cậu chứ ko bảo cậu có viết đc hay ko
h.gif

Nhầm
PHP:
public get_id()
{
new aceid, max_score
    for (new id=1;id<33;id++)
    {
        if (is_user_connected(id)
        {
              if (get_user_frags(id)>max_score)
              {
                      aceid=id
                       max_score = get_user_frags(id)
               }
         }
     }
return aceid
}
 
Đã thử với v40 dz fresh, kết quả thế này, ko hỉu sao radar cũ nó ko mất

dedust0000gf.jpg
 
hình như có cmd để hide radar này thì phải ?
 
NPC tự dò đường đây :>. Tuy nhiên nhiều khi sai đường nó có thể đâm đầu vô tường chạy =)).
[video=youtube;hbTGRfEvWTQ]http://www.youtube.com/watch?v=hbTGRfEvWTQ[/URL][/video]

@HuuCuong:
- Đừng nói gì hết nhá :>
 
ai biết xóa cái score cũ của CSO-NST không chi dùm?
 
^
^ Bạn trẻ đi nhờ người khác thì ko thèm chấp:-"
Mình ko bảo là mình làm đc đâu nhé, thế nên đừng vặn lại làm gì mất công:-"
 
Nhờ ai cơ =)). HuuCuong giúp ta về waypoint ko giúp về A* đâu =))
 
^
- Chưa xem code chưa thể nói là nhờ người giúp. Giờ cho mi xem code nếu mi coi ko có ai giúp mi sẽ là con... nhé :-?. Đảm bảo xem code là mi biết ngay có ai giúp hay ko giúp liền :}}
 

try with config of me share for you :9cool_canny:
Radar defauld will hide and show only radar cso
================================
Tập học tiếng anh, nếu sai đừng ai ném đá ^ ^
 
^
Đã thử, down về mở ra xem, cfg trắng tinh, ko có dòng cvar nào...
 
NPC tự dò đường đây :>. Tuy nhiên nhiều khi sai đường nó có thể đâm đầu vô tường chạy =)).
[video=youtube;hbTGRfEvWTQ]http://www.youtube.com/watch?v=hbTGRfEvWTQ[/URL][/video]

@HuuCuong:
- Đừng nói gì hết nhá :>
NPC hay người tự chạy thế =)) cơ mà có thể soi được màn hình của npc à
 
Back
Top