- UID
- 2255448
- 主题
- 0
- 阅读权限
- 50
- 帖子
- 1545
- 精华
- 1
- 积分
- 1283
- 金钱
- 2953
- 荣誉
- 31
- 人气
- 2
- 在线时间
- 27 小时
- 评议
- 0
- 帖子
- 1545
- 精华
- 1
- 积分
- 1283
- 金钱
- 2953
- 荣誉
- 31
- 人气
- 2
- 评议
- 0
|
裝上北極熊的lua解釋器..
下面是改造的代碼,
我改的是:
PushInt(51)
CallNative("CHANGE_PLAYER_MODEL")
整數我試過7 , 17, 23, 51 進遊戲後狂按tab有一定機率調出來..
非常不穩定, 容易崩潰..
- ---------- GTA IV Alice "Superman" script example ----------
- ---------- ?Alexander Blade 2008 ----------
- --global variables
- PLAYER_ID, PLAYER_INDEX, PLAYER_CHAR = 0
- function InitScript()
- -- blah-blah-blah
- Wait(10000)
- end
- function WaitForPlayerPoolCreation()
- while (IsPlayerPoolCreated() == 0) do
- Wait(2000)
- end
- end
- function WaitForValidPlayer()
- PLAYER_CHAR = 0
- repeat
- CallNative("GET_PLAYER_ID")
- PLAYER_ID = GetIntResult()
- if (PLAYER_ID >= 0) then
- PushInt(PLAYER_ID)
- CallNative("CONVERT_INT_TO_PLAYERINDEX")
- PLAYER_INDEX = GetIntResult()
- PushInt(PLAYER_INDEX)
- PushVarPtr()
- CallNative("GET_PLAYER_CHAR")
- PLAYER_CHAR = GetIntParam(1)
- if (PLAYER_CHAR <= 0) then
- Wait(1000)
- end
- end
- until (PLAYER_CHAR > 0)
- end
- function SetPlayerProperties()
- PushInt(PLAYER_INDEX)
- PushInt(51)
- CallNative("CHANGE_PLAYER_MODEL")
- end
- function main()
- InitScript()
- while true do
- WaitForPlayerPoolCreation()
- WaitForValidPlayer()
-
- if (IsKeyPressed(9) == 1) then
- SetPlayerProperties()
- Wait(2000)
-
- end
- Wait(5000)
- end
- end
- -- start
- main();
复制代码
[ 本帖最后由 千人斩竞争 于 2008-12-24 14:44 编辑 ] |
附件: 你需要登录才可以下载或查看附件。没有帐号?注册
|