native

Home Home
引用 | 編輯 adi37545vfg
2013-05-10 21:29
樓主
推文 x0
請問一下
我想要native一個指令像 set_user_health一樣
直接把g_xp這個東東 設定成想要的 用在別的插件
請問一下要怎麼用@@@@@
感恩~~

獻花 x0
引用 | 編輯 弒血
2013-05-13 12:22
1樓
  
教學區 有發文 表情
多去 爬文看看 表情

獻花 x0
引用 | 編輯 Nailaz
2013-08-26 10:08
2樓
  
public plugin_natives()//在插件裡加入
{
     register_native("set_user_xp", "native_set_user_xp", 1)
}

public native_set_user_xp(id, amount)
{
     g_xp[id] = amount
     return g_xp[id]
}

然後在你註冊的inc裡加入

native set_user_xp(index,amount)

獻花 x0