編寫sma(AMXX)教學第二集

Home Home
<< 1 2 3 >>
跳頁: (共 3 頁)
引用 | 編輯 JrC
2011-12-20 20:53
樓主
推文 x5
對不起!您沒有登入,請先登入論壇


獻花 x7
引用 | 編輯 yzhyzlm
2011-12-21 19:58
1樓
  
期待LZ更多內容

獻花 x0
引用 | 編輯 能天使
2011-12-22 00:16
2樓
  
教學都要調較聲望 唉

獻花 x1
引用 | 編輯 harman0208
2011-12-22 00:46
3樓
  
威望2..都不夠 我好想學sma 但不夠威望 樓主可以調較聲望嗎- -? 謝謝

獻花 x0
引用 | 編輯 briansiocl33
2011-12-22 13:12
4樓
  
XD,真好呀,又多一個參考sma了,(copy鳥XD

獻花 x0
引用 | 編輯 JrC
2011-12-22 16:50
5樓
  
下面是引用 harman0208 於 2011-12-22 00:46 發表的 : 到引言文
威望2..都不夠 我好想學sma 但不夠威望 樓主可以調較聲望嗎- -? 謝謝
努力回文就好..

獻花 x0
引用 | 編輯 z4a7wq
2011-12-22 17:32
6樓
  
第2次了

我都想學

獻花 x0
引用 | 編輯 su0922168060
2011-12-22 17:59
7樓
  
沒有寫set_user_gravity

是幹麻的 QQ

講一下嗎?

還有有自創模塊的媽?

你懂巴@@

獻花 x0
引用 | 編輯 HoJai
2011-12-22 22:42
8樓
  
期待你的No.3啦 表情

獻花 x0
引用 | 編輯 觀眾甲
2011-12-24 22:46
9樓
  
下面是引用 能天使 於 2011-12-22 00:16 發表的 : 到引言文
教學都要調較聲望 唉
http://bbs.mychat.to/reads.php?tid=892780 請問你這是...?

獻花 x1
引用 | 編輯 csoken
2011-12-26 22:37
10樓
  
strip_user_weapons(id)
這段我第一次看到
脫掉裝備原來是這樣設定
我學會了 表情

獻花 x0
引用 | 編輯 tommychan11a
2011-12-29 12:28
11樓
  
沒有威望-.-

獻花 x0
引用 | 編輯 aaaasszx
2011-12-31 19:30
12樓
  
我編譯有問題耶
可以幫我看看有沒有寫錯嗎
順便幫我編成AMXX我照著範例寫的
它都說我有TWO ERROR
很像是錢的函數出了問題
= =

#include <amxmodx>
#include <fun>

public plugin_init()
{
register_plugin("testing", "1.0", "Testing")
register_clcmd("say /hp", "hp")
}

public hp(id)
{
new money = cs_get_user_money(id)
new hp = get_user_health(id)
new ap = get_user_armor(id)
if( hp < 100)
{
set_user_health(id, hp + 100)
set_user_armor(id, ap + 100)
cs_set_user_money(id, money + 5000)
}
else
{
strip_user_weapons(id)
client_print(id, print_chat, "滿血不能使用!!!")

}
}





可以的話順便給我你的scripting資料夾我的怪怪的


圖 1.


獻花 x0
引用 | 編輯 tw2twtw
2011-12-31 19:42
13樓
  
沒有載入 <cstrike>

/* Returns users money.
*/
native cs_get_user_money(index);

/* Gives money to user. If flash is 1, the difference between new and old amount will flash red or green.
*/
native cs_set_user_money(index, money, flash = 1);

獻花 x0
引用 | 編輯 JrC
2011-12-31 19:51
14樓
  
下面是引用 tw2twtw 於 2011-12-31 19:42 發表的 : 到引言文
沒有載入 <cstrike>

/* Returns users money.
*/
native cs_get_user_money(index);

/* Gives money to user. If flash is 1, the difference between new and old amount will flash red or green.
*/
native cs_set_user_money(index, money, flash = 1);
真對不起= =
我忘記了寫include <cstrike>
感謝提醒

獻花 x0
引用 | 編輯 aaaasszx
2011-12-31 19:52
15樓
  
下面是引用 tw2twtw 於 2011-12-31 19:42 發表的 : 到引言文
沒有載入 <cstrike>

/* Returns users money.
*/
native cs_get_user_money(index);

/* Gives money to user. If flash is 1, the difference between new and old amount will flash red or green.
*/
native cs_set_user_money(index, money, flash = 1);
加了之後更怪


圖 1.


獻花 x0
引用 | 編輯 JrC
2011-12-31 19:57
16樓
  

圖 1.


下面是引用 aaaasszx 於 2011-12-31 19:52 發表的 : 到引言文

加了之後更怪
沒有問題阿= =

本帖包含附件
檔名: zip ATEST.rar   (2022-06-09 14:19 / 1 KB)   下載次數:3


獻花 x0
引用 | 編輯 zxc1234579
2011-12-31 20:27
17樓
  
趁著無聊時間 來學點改sma

獻花 x0
引用 | 編輯 aaaasszx
2011-12-31 23:54
18樓
  
下面是引用 JrC 於 2011-12-31 19:57 發表的 : 到引言文

沒有問題阿= =
那可能是我轉amxx的有問題
請問可以給我你的
嘛?表情

獻花 x0
引用 | 編輯 JrC
2012-01-01 02:10
19樓
  
下面是引用 aaaasszx 於 2011-12-31 23:54 發表的 : 到引言文

那可能是我轉amxx的有問題
請問可以給我你的
嘛?表情


本帖包含附件
檔名: zip scripting.rar   (2022-06-09 14:19 / 647 KB)   下載次數:13


獻花 x1
引用 | 編輯 abct8hgt
2012-01-01 22:06
20樓
  
想學sma 編寫 但是威望太低啦 ... 

獻花 x0
引用 | 編輯 膠神
2012-01-02 08:00
21樓
  
我-0.1的威望,回一回 表情

獻花 x0
引用 | 編輯 hui8895
2012-01-13 17:01
22樓
  
好野一定要睇!!!!!

獻花 x0
引用 | 編輯 jason33309
2012-01-14 22:12
23樓
  
我沒有這個天份><
我要做!!!!

獻花 x0
引用 | 編輯 米魯
2012-01-15 09:30
24樓
  
非常謝謝您,提供這麼多的資料

獻花 x0
引用 | 編輯 cvb655023
2012-01-16 10:12
25樓
  
看樣子想要學插件要記好多代碼
表情 表情

獻花 x0
引用 | 編輯 clearit
2012-01-18 14:47
26樓
  
努力中!!!

獻花 x0
引用 | 編輯 asd0210a
2012-02-04 15:31
27樓
  
strip_user_weapons

這是什麼意思

獻花 x0
引用 | 編輯 tobywu122222
2012-02-04 20:49
28樓
  
趁著無聊時間 來學點改sma

獻花 x0
引用 | 編輯 能天使
2012-02-05 00:05
29樓
  
教僅我很多有關源碼的修改方法 感謝大大

獻花 x0
<< 1 2 3 >>
跳頁: (共 3 頁)