有沒有辦法能讓玩家的血量一直維持不變?

Home Home
引用 | 編輯 鐵血
2014-04-01 18:52
樓主
推文 x0
如題,
請問有沒有辦法讓玩家的血量一直維持在一個數字?
讓玩家跟BOT不管怎麼跌,怎麼炸,都不會有傷害。

獻花 x0
引用 | 編輯 弒血
2014-04-01 19:09
1樓
  
使用無敵..
基本上需要用到插件

#include <fun>
set_user_godmode(index, 1);

獻花 x0
引用 | 編輯 zxzyman
2014-04-02 18:14
2樓
  
幫你找到一個...
是外國網站 老外發問的問題 已解決的

只是不知道 hamsandwich 模塊 是什麼東東

#include < amxmodx >
#include < fun >
#include < hamsandwich >

#define IsPlayer(%1) ( 1 <= %1 <= get_maxplayers( ) )

public plugin_init( )  
  RegisterHam( Ham_Spawn, "player", "Forward__PlayerSpawn_Post", 1 );
 
public Forward__PlayerSpawn_Post( iPlayer )
{
  if( !is_user_alive( iPlayer ) || !IsPlayer( iPlayer ) )
    return;

  set_user_godmode( iPlayer, 1 );
}

獻花 x0
引用 | 編輯 岳岳
2014-04-03 13:10
3樓
  
下面是引用 zxzyman 於 2014-04-02 18:14 發表的 : 到引言文
幫你找到一個...
是外國網站 老外發問的問題 已解決的
只是不知道 hamsandwich 模塊 是什麼東東
#include < amxmodx >
#include < fun >
.......



Ham模塊就是包括Ham語法的模塊


像是RegisterHam( Ham_Spawn, "player", "Forward__PlayerSpawn_Post", 1 );


而那Ham_Spawn就是Hamsandwich裡的東西

獻花 x0
引用 | 編輯 鐵血
2014-04-08 22:00
4樓
  
感謝各位大大給小弟本人的指導!

獻花 x0