2種SMA write法 求教 先謝

Home Home
引用 | 編輯 能天使
2012-01-14 14:45
樓主
推文 x0
到達某個秒數自動會有廣告 可以加下去 不是只有1個
和說某些話自動彈出某些文字的編法
先感謝熱心看帖的大大

獻花 x0
引用 | 編輯 a08679022
2012-01-18 23:53
1樓
  
說某些話自動彈出某些文字的編法(應該是以下這樣...)

#include <amxmodx>

public plugin_init()
{
register_plugin(PLUGIN_NAME,PLUGIN_VERSION,PLUGIN_AUTHOR)
register_clcmd("say hi","player_say_hi")
}

public player_say_hi(id)
{
client_print(id, print_center, "Hello")         //在中間
client_print(id, print_chat, "Hello")         //CS說話位置(左下)
client_print(id, print_console, "Hello")         //CS控制台(~)
}
另外一個...不懂 表情

獻花 x0
引用 | 編輯 觀眾甲
2012-01-21 11:15
2樓
  
複製程式
#include <amxmodx>

public plugin_init()  //註冊插件
{
     register_clcmd("say 123", "123")    //註冊客戶端指令(玩家輸入123,執行123 Function
}

public client_putinserver(id)  //當玩家進入伺服器
{
     set_task(5.0, "333", id)      //set_task是時間,這個意思是過五秒之後執行333的function
}

public 123(id)   //解釋123 Function
{
       client_print(id, print_chat, "傻B~")   //左下角顯示"傻B~"
}

public 333(id)   //解釋function
{
     client_print(id, print_chat, "歡迎")   //左下角顯示"歡迎"
     set_task(90.0, "333", id)    // 再過90秒後再次執行333
}


獻花 x0
引用 | 編輯 能天使
2012-01-22 01:57
3樓
  
2位大大的教學令我的認識加深很多

獻花 x0
引用 | 編輯 能天使
2012-01-22 02:06
4樓
  
我見過client_print轉得了綠色..如何編輯的呢請問

第2個問題
#include <amxmodx>

public plugin_init()  //註冊插件
{
     register_clcmd("say cheat", "cheat")    //註冊客戶端指令(玩家輸入123,執行123 Function
}

public cheat(id)   //解釋1 Function
{
       client_print(id, print_chat, "如果發現作弊者,請立即使用/voteban功能幹掉他.(如果在場有管理員,請告知.)")   //左下角顯示"文字"
}


我想說2種文字/以上亦會彈出來 要重新copy一下嗎?有方便一點的編法嗎..只有這2個問題..先感謝..麻煩你們了

獻花 x0
引用 | 編輯 能天使
2012-01-23 14:04
5樓
  
能給一點教學嗎 在下對sma認識太低了..

獻花 x0
引用 | 編輯 a08679022
2012-02-18 02:17
6樓
  
轉色的話:
http://bbs.mychat.to/reads.php?tid=941660

"我想說2種文字/以上亦會彈出來 要重新copy一下嗎?":
不太明白妳的意思...

獻花 x0