引用 | 編輯
T.o.n..y
2014-11-02 18:41 |
樓主
▼ |
||
x0
如何讓模組 像箭一樣~~可以插在牆上?不一定要箭~ 讓任何模組都可以黏在牆上~ 是要在fw_touch 裡面設置甚麼? 煩請各位數位大大~~多多幫忙~ 感謝... x0
|
引用 | 編輯
弒血
2014-11-02 22:40 |
1樓
▲ ▼ |
下面是引用 T.o.n..y 於 2014-11-02 18:41 發表的 SMA 相關問題: public fw_touch(ptr, ptd) { //取得群組名稱 static classname[32]; pev(ptr, pev_classname, classname, charsmax(classname)); //檢查群組名稱 if (equal(classname, "你的模組群組名稱")) { //當碰撞單位不是..活體時.. if (!is_user_alive(ptd)) { //取得碰撞使用者的座標跟使用座標 static Float:origin[3]; pev(ptr, pev_origin, origin); set_pev(ptr, pev_origin, origin); } } } x0 |
引用 | 編輯
T.o.n..y
2014-11-03 00:03 |
2樓
▲ ▼ |
下面是引用 s8720419 於 2014-11-02 22:40 發表的 : 您文中的ptr, ptd 是什麼意思?可修改? 煩請解答...感恩 x0 |