cs1.6僵尸感染4.1里 zp_admin_money 怎么改?
我想把“给予僵尸币”1改成50,2改成99999999#include<amxmodx>#include<amxmisc>#include<zombieplague>#d...
我想把“给予僵尸币”1改成50,2改成99999999
#include <amxmodx>
#include <amxmisc>
#include <zombieplague>
#define PLUGIN "[ZP] Admin_Money"
#define VERSION "0.5"
#define AUTHOR "[Grief.QQ]"
#define MENU_SIZE 256
#define MENU_PLAYERS 7
new g_iMenuPosition
new g_iMenuPlayers[32]
new g_iMenuOption[32]
new g_iMenuSettings[32]
const PACKS_1 = 2 //给予两个僵尸币(可修改)
const PACKS_2 = 5 //给予五个僵尸币(可修改)
public plugin_init()
{
register_plugin(PLUGIN,VERSION,AUTHOR)
register_menucmd(register_menuid("\r在线玩家列表:"),1023,"actionMenu")
register_clcmd("zp_money","ZP_GIVE_MONEY",ADMIN_RCON,"- displays Players")
AddMenuItem("[ZP]给予僵尸币","zp_money",ADMIN_RCON,PLUGIN)
}
public ZP_GIVE_MONEY( id, lvl, cid )
{
if( cmd_access( id, lvl, cid, 0 ) )
{
g_iMenuOption[id] = 0
g_iMenuSettings[id] = 0
showMenu( id, g_iMenuPosition = 0 )
}
return PLUGIN_HANDLED
}
public showMenu( id, pos )
{
if( pos < 0 ) return
new i, j
new szMenuBody[MENU_SIZE]
new iCurrKey = 0
new szUserName[32]
new iStart = pos * MENU_PLAYERS
new iNum
get_players( g_iMenuPlayers, iNum )
if( iStart >= iNum )
iStart = pos = g_iMenuPosition = 0
new iLen = format( szMenuBody, MENU_SIZE-1, "\r在线玩家列表:\R%d/%d^n\w^n", pos+1, (iNum / MENU_PLAYERS + ((iNum % MENU_PLAYERS) ? 1 : 0 )) )
new iEnd = iStart + MENU_PLAYERS
new iKeys = (1<<9|1<<7)
if( iEnd > iNum )
iEnd = iNum
for( i = iStart; i < iEnd; i++ )
{
j = g_iMenuPlayers[i]
get_user_name( j, szUserName, 31 )
iKeys |= (1<<iCurrKey++)
iLen += format( szMenuBody[iLen], (MENU_SIZE-1-iLen), "%d. %s^n", iCurrKey, szUserName )
}
if ( g_iMenuSettings[id] )
iLen += format( szMenuBody[iLen], (MENU_SIZE-1-iLen), "^n8. 给予%d个僵尸币^n" ,PACKS_2)
else
iLen += format( szMenuBody[iLen], (MENU_SIZE-1-iLen), "^n8. 给予%d个僵尸币^n" ,PACKS_1)
if( iEnd != iNum )
{
format( szMenuBody[iLen], (MENU_SIZE-1-iLen), "^n9. 更多玩家^n0. %s", pos ? "返回" : "退出" )
iKeys |= (1<<8)
}
else
format( szMenuBody[iLen], (MENU_SIZE-1-iLen), "^n0. %s", pos ? "返回" : "退出" )
show_menu( id, iKeys, szMenuBody, -1 )
return
}
public actionMenu( id, key )
{
switch( key )
{
case 7: {
++g_iMenuOption[id]
g_iMenuOption[id] %= 2
switch(g_iMenuOption[id])
{
case 0: g_iMenuSettings[id] = 0
case 1: g_iMenuSettings[id] = 1
}
showMenu( id, g_iMenuPosition )
}
case 8: showMenu( id, ++g_iMenuPosition ) // 翻页
case 9: showMenu( id, --g_iMenuPosition ) // 返回
default:
{
new player = g_iMenuPlayers[g_iMenuPosition * MENU_PLAYERS + key]
switch(g_iMenuSettings[id])
{
case 0: zp_set_user_ammo_packs(player, zp_get_user_ammo_packs(player) + PACKS_1);
case 1: zp_set_user_ammo_packs(player, zp_get_user_ammo_packs(player) + PACKS_2);
}
}
}
return PLUGIN_HANDLED
}
如上代码,会的可加QQ 949226457
还有发弹药的代码是什么?(在控制台打的) 展开
#include <amxmodx>
#include <amxmisc>
#include <zombieplague>
#define PLUGIN "[ZP] Admin_Money"
#define VERSION "0.5"
#define AUTHOR "[Grief.QQ]"
#define MENU_SIZE 256
#define MENU_PLAYERS 7
new g_iMenuPosition
new g_iMenuPlayers[32]
new g_iMenuOption[32]
new g_iMenuSettings[32]
const PACKS_1 = 2 //给予两个僵尸币(可修改)
const PACKS_2 = 5 //给予五个僵尸币(可修改)
public plugin_init()
{
register_plugin(PLUGIN,VERSION,AUTHOR)
register_menucmd(register_menuid("\r在线玩家列表:"),1023,"actionMenu")
register_clcmd("zp_money","ZP_GIVE_MONEY",ADMIN_RCON,"- displays Players")
AddMenuItem("[ZP]给予僵尸币","zp_money",ADMIN_RCON,PLUGIN)
}
public ZP_GIVE_MONEY( id, lvl, cid )
{
if( cmd_access( id, lvl, cid, 0 ) )
{
g_iMenuOption[id] = 0
g_iMenuSettings[id] = 0
showMenu( id, g_iMenuPosition = 0 )
}
return PLUGIN_HANDLED
}
public showMenu( id, pos )
{
if( pos < 0 ) return
new i, j
new szMenuBody[MENU_SIZE]
new iCurrKey = 0
new szUserName[32]
new iStart = pos * MENU_PLAYERS
new iNum
get_players( g_iMenuPlayers, iNum )
if( iStart >= iNum )
iStart = pos = g_iMenuPosition = 0
new iLen = format( szMenuBody, MENU_SIZE-1, "\r在线玩家列表:\R%d/%d^n\w^n", pos+1, (iNum / MENU_PLAYERS + ((iNum % MENU_PLAYERS) ? 1 : 0 )) )
new iEnd = iStart + MENU_PLAYERS
new iKeys = (1<<9|1<<7)
if( iEnd > iNum )
iEnd = iNum
for( i = iStart; i < iEnd; i++ )
{
j = g_iMenuPlayers[i]
get_user_name( j, szUserName, 31 )
iKeys |= (1<<iCurrKey++)
iLen += format( szMenuBody[iLen], (MENU_SIZE-1-iLen), "%d. %s^n", iCurrKey, szUserName )
}
if ( g_iMenuSettings[id] )
iLen += format( szMenuBody[iLen], (MENU_SIZE-1-iLen), "^n8. 给予%d个僵尸币^n" ,PACKS_2)
else
iLen += format( szMenuBody[iLen], (MENU_SIZE-1-iLen), "^n8. 给予%d个僵尸币^n" ,PACKS_1)
if( iEnd != iNum )
{
format( szMenuBody[iLen], (MENU_SIZE-1-iLen), "^n9. 更多玩家^n0. %s", pos ? "返回" : "退出" )
iKeys |= (1<<8)
}
else
format( szMenuBody[iLen], (MENU_SIZE-1-iLen), "^n0. %s", pos ? "返回" : "退出" )
show_menu( id, iKeys, szMenuBody, -1 )
return
}
public actionMenu( id, key )
{
switch( key )
{
case 7: {
++g_iMenuOption[id]
g_iMenuOption[id] %= 2
switch(g_iMenuOption[id])
{
case 0: g_iMenuSettings[id] = 0
case 1: g_iMenuSettings[id] = 1
}
showMenu( id, g_iMenuPosition )
}
case 8: showMenu( id, ++g_iMenuPosition ) // 翻页
case 9: showMenu( id, --g_iMenuPosition ) // 返回
default:
{
new player = g_iMenuPlayers[g_iMenuPosition * MENU_PLAYERS + key]
switch(g_iMenuSettings[id])
{
case 0: zp_set_user_ammo_packs(player, zp_get_user_ammo_packs(player) + PACKS_1);
case 1: zp_set_user_ammo_packs(player, zp_get_user_ammo_packs(player) + PACKS_2);
}
}
}
return PLUGIN_HANDLED
}
如上代码,会的可加QQ 949226457
还有发弹药的代码是什么?(在控制台打的) 展开
4个回答
展开全部
zp_admin_money.sma放到addons\amxmodx\scripting下,用UltraEdit-32打开,const PACKS_1 = 2 //给予两个僵尸币(可修改)
const PACKS_2 = 5 //给予五个僵尸币(可修改)
如下:
const PACKS_1 = 50 //给予两个僵尸币(可修改)
const PACKS_2 = 999999 //给予五个僵尸币(可修改)
保存双击compile.exe,复制addons\amxmodx\scripting\compiled下的zp_admin_money.amxx到addons\amxmodx\plugins下。
发弹药控制台命令 zp_money 或绑定按键,在控制台打字如: bind i zp_money 在游戏中按 i 键 就可以发弹药了。
const PACKS_2 = 5 //给予五个僵尸币(可修改)
如下:
const PACKS_1 = 50 //给予两个僵尸币(可修改)
const PACKS_2 = 999999 //给予五个僵尸币(可修改)
保存双击compile.exe,复制addons\amxmodx\scripting\compiled下的zp_admin_money.amxx到addons\amxmodx\plugins下。
发弹药控制台命令 zp_money 或绑定按键,在控制台打字如: bind i zp_money 在游戏中按 i 键 就可以发弹药了。
2010-05-14
展开全部
const PACKS_1 = 2 //给予两个僵尸币(可修改)
const PACKS_2 = 5 //给予五个僵尸币(可修改)
zp_admin_money.sma放到cstrike\addons\amxmodx\scriptingUltraEdit打开,2改成50,5改成999999,另存为 格式UTF-8 无BOT,双击compile.exe,复制文件夹compiled里的zp_admin_money.amxx到addons\amxmodx\plugins下覆盖同名文件。
打开addons\amxmodx\configs\clcmds.ini添加武器格式如下
"给与 M4A1" "amx_weapon #%userid% 43" "b" "u"
"给与 AK47" "amx_weapon #%userid% 41" "b" "u"
"给与 AWP" "amx_weapon #%userid% 46" "b" "u"
游戏中按 Y 输入 menu 按 8 客户端命令,重复按8找到需要的命令,按1-7选用户,9是翻下页。
const PACKS_2 = 5 //给予五个僵尸币(可修改)
zp_admin_money.sma放到cstrike\addons\amxmodx\scriptingUltraEdit打开,2改成50,5改成999999,另存为 格式UTF-8 无BOT,双击compile.exe,复制文件夹compiled里的zp_admin_money.amxx到addons\amxmodx\plugins下覆盖同名文件。
打开addons\amxmodx\configs\clcmds.ini添加武器格式如下
"给与 M4A1" "amx_weapon #%userid% 43" "b" "u"
"给与 AK47" "amx_weapon #%userid% 41" "b" "u"
"给与 AWP" "amx_weapon #%userid% 46" "b" "u"
游戏中按 Y 输入 menu 按 8 客户端命令,重复按8找到需要的命令,按1-7选用户,9是翻下页。
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
CS生化危机竞技版\cstrike\addons\amxmodx\configs\zombieplague.cfg 在那里自己慢慢看
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询