3DMGAME 3DM首页 新闻中心 前瞻 | 评测 游戏库 热门 | 最新 攻略中心 攻略 | 秘籍 下载中心 游戏 | 汉化 购买正版 论坛

注册 登录

QQ登录

只需一步,快速开始

查看: 5512|回复: 8
打印 上一主题 下一主题

[资料] GTA4 C++ Hook脚本编写汇总! 点亮。置高。是要申请滴。。

[复制链接]

14

主题

2660

帖子

3317

积分

游戏达人

Rank: 7Rank: 7Rank: 7

贡献度
457
金元
14893
积分
3317
精华
0
注册时间
2008-10-19
跳转到指定楼层
主题
发表于 2009-5-8 23:43 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
   越玩越发现asi和lua这两种脚本mod的强大!!再次召集懂编程的网友用c++做中国人自己的mod。。欢迎各位网友提供这方面的资料。教程。链接等。。。。。。
谢绝灌水!!!!!!!

   本工具功效如同Alice脚本,编写用于修改GTA4的脚本。


== 如何使用 ==



1. 确保你的GTA4为1.0.1版,并且已经打上ASI Loader补丁



2. 用Microsoft Visual C++编辑范例脚本,编写你想要的效果的代码(如果你精通C++)

// 提示:SampleCustomFiber文件夹(SampleCustomFiber.vcproj) 提供了范例脚本。

// 提示:SampleCustom文件夹(SampleCustom.vcproj) 为GTA4提供了编写脚本的接口。(例如为GTA4编写VB.net控制接口、C++控制接口、lua语言接口等等,象那个GTAIV .Net Script Hook的作者,就是基于本工具编写的)  


// 提示:如果你在编辑范例脚本时需要一些属性,而在SampleCustomFiber文件夹下的Scripting.h里没有,打开ScriptHook文件夹下的ScriptingDirty.h,从里面拷贝相应的代码到SampleCustomFiber文件夹下的Scripting.h里。


// 提示:如果你编程语言不太行的话,强烈建议你不要修改SampleCustom.vcproj,你就改改SampleCustomFiber.vcproj就行了。
(如果你不懂编程,就把 SampleCustomFiber文件夹里的范例脚本编译一下,放GTA4目录,用范例脚本默认的功能吧。)


3. 在Release模式下编译项目文件(F7),编译完(注意看看,有没有编译失败的文件,有的话,要重新编辑脚本直到无误),在本工具的根目录会多出一个“Release”文件夹,将其中的dll后缀改为asi后缀,并全放在GTA4根目录下。

--------------------------------------------------------

SampleCustomFiber文件夹下自带的范例脚本具有如下功能:
  F5 - 随机刷辆车
  F6 - 获得1000美圆
  F7 - 刷一个Banshee
  F8 - 皮肤换成Johnny (再按F8,为Johnny换衣服)
  F9 - 随机换Niko的衣服


== 作者版权声明 ==

(zlib license)

  This software is provided 'as-is', without any express or implied
  warranty.  In no event will the authors be held liable for any damages
  arising from the use of this software.

  Permission is granted to anyone to use this software for any purpose,
  including commercial applications, and to alter it and redistribute it
  freely, subject to the following restrictions:

  1. The origin of this software must not be misrepresented; you must not
     claim that you wrote the original software. If you use this software
     in a product, an acknowledgment in the product documentation would be
     appreciated but is not required.
  2. Altered source versions must be plainly marked as such, and must not be
     misrepresented as being the original software.
  3. This notice may not be removed or altered from any source distribution.

GTA4+C+++Hook脚本补丁.rar

101.54 KB, 下载次数: 37

rar

回复

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|3DMGAME ( 京ICP备14006952号-1  沪公网安备 31011202006753号

GMT+8, 2026-4-9 16:49 , Processed in 0.037804 second(s), 17 queries , Memcached On.

Powered by Discuz! X3.2

© 2001-2013 Comsenz Inc.

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