搜索
楼主: 0920357689

關於Nimo的 csmodip插件

[复制链接]
 楼主| 发表于 2008-4-9 17:26:44 | 显示全部楼层 来自 香港

回复: 關於Nimo的 csmodip插件

插件能開沒問題..
但....
排名[ %s / %s ]",

這里有問題...
寫了排名[ / ]" 排名空白了沒資料顯示
回复

使用道具 举报

 楼主| 发表于 2008-4-9 17:27:53 | 显示全部楼层 来自 香港

回复: 關於Nimo的 csmodip插件

請問方不方便QQ我...我有很多問題想問....
381801625
回复

使用道具 举报

发表于 2008-4-9 18:02:41 | 显示全部楼层 来自 广东深圳

回复: 關於Nimo的 csmodip插件

可能是代码没有写好!!
等下我重新修改给你了

[PHP]include <amxmodx>
#include <amxmisc>
#include <csstats>
#include <GetIP>
#define PLUGIN "ShowIP"
#define VERSION "1.0"
#define AUTHOR "Shock.V"
new Show_Player[32][256]
//new SayText
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)

//register_event("TextMsg","team_join","a","1=1","2&Game_join_te","2&Game_join_ct")

//SayText=get_user_msgid("SayText")
}
public client_putinserver(id)
{
ShowIP(id)
}
public ShowIP(id)
{
if ( !is_user_connected(id))
return PLUGIN_HANDLED

new playerip[17]

get_user_ip(id, playerip, 16, 1)

csmod_ip(playerip,Show_Player[id],255)
set_task(5.0,"ShowMessage",id)

return PLUGIN_CONTINUE
}
/*public team_join()
{
new UserID[32]
read_data(3,UserID,31)
new id = get_user_index(UserID)

if ( !is_user_connected(id))
return PLUGIN_CONTINUE

set_task(5.0,"ShowMessage",id)

return PLUGIN_CONTINUE
}*/
public ShowMessage(id)
{
if ( !is_user_connected(id))
return PLUGIN_CONTINUE
new name[32]
//,message[256]
new playerip2[32]
new izStats[8], izBody[8]
new iRankPos, iRankMax;
iRankPos = get_user_stats( id, izStats, izBody);
iRankMax = get_statsnum();
get_user_name(id, name, 31)
get_user_ip(id, playerip2, 31)
set_hudmessage(255, 0, 0, 0.52, 0.5, 2, 3.0, 5.0, 0.1, 0.2, 0)
show_hudmessage(0, "姓名: %s^n目前所在地: %s^nIP登陸: %s^n排名[ %d / %d ]", name, Show_Player[id], playerip2, iRankPos,iRankMax)
//format(message, 255, "^x01歡迎^x03 %s ^x01來自:^x04 %s^n", name, Show_Player[id])
//message_begin(MSG_ALL,SayText)
//write_byte(id)
//write_string(message)
//message_end()

return PLUGIN_CONTINUE
}  
[/PHP]
回复

使用道具 举报

 楼主| 发表于 2008-4-9 18:16:12 | 显示全部楼层 来自 香港

回复: 關於Nimo的 csmodip插件

Post by baili1258
可能是代码没有写好!!
等下我重新修改给你了

[php]include <amxmodx>
#include <amxmisc>
#include <csstats>
#include <GetIP>
#define PLUGIN "ShowIP"
#define VERSION "1.0"
#define AUTHOR "Shock.V"
new Show_Player[32][256]
//new SayText
public plugin_init()
{
register_p...
行沒..沒問題了..另外我想問問能不能用sql存排行?
回复

使用道具 举报

发表于 2008-4-9 20:58:06 | 显示全部楼层 来自 广东深圳

回复: 關於Nimo的 csmodip插件

建议用PS3...:dribble:
回复

使用道具 举报

 楼主| 发表于 2008-4-10 09:54:31 | 显示全部楼层 来自 香港

回复: 關於Nimo的 csmodip插件

Post by baili1258
建议用PS3...:dribble:
我的意思是在cs里讀取排行..如/me /rank 那些排名
回复

使用道具 举报

发表于 2008-4-10 11:29:23 | 显示全部楼层 来自 广东深圳

回复: 關於Nimo的 csmodip插件

我正在找比较合适的...
还没有比较好的
回复

使用道具 举报

发表于 2010-2-27 15:30:20 | 显示全部楼层 来自 广东东莞
没有写错 是 那个DLL 文件生成的时候改错名字了  你添加成这样
  1. csmod_ip  1   内存模式
  2. csmod_ip  普通模式
复制代码
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表