
標題: i have made a server.cfg...then wt should i do next?? how 限時出tank ? [打印本頁]
作者: haroldchan2030 時間: 2010-3-5 12:16 標題: i have made a server.cfg...then wt should i do next?? how 限時出tank ?
i have made a file called server.cfg and i have put it in left4dead2\cfg...but wt should i do next?? and i also want to ask wt should i type in order to have 限時出tank ?
作者: wongkc987 時間: 2010-3-5 12:18
do a scripting by yourself
:
作者: haroldchan2030 時間: 2010-3-5 13:48
引用:
原帖由 wongkc987 於 2010-3-5 12:18 發表 
do a scripting by yourself
:
how?? do u have a sample?
作者: 天羽‧耀洋 時間: 2010-3-5 16:02
複製內容到剪貼板
代碼:
#include
#include
#define PLUGIN_VERSION "0.0.0.1"
public Plugin:myinfo =
{
name = "定時 ",
author = "YSH=]",
description = "簡單的定時出Tank插件",
version = PLUGIN_VERSION,
url = "http://ysh021003.no-ip.org/"
}
public OnPluginStart()
{
CreateConVar("sm_tank_version", PLUGIN_VERSION, "插件版本", FCVAR_PLUGIN|FCVAR_SPONLY|FCVAR_REPLICATED|FCVAR_NOTIFY);
CreateTimer(150.0, Tank, _, TIMER_REPEAT); //預設150秒出一次Tank
}
public Action:Tank(Handle:timer)
{
new flags = GetCommandFlags("z_spawn");
SetCommandFlags("z_spawn", flags & ~FCVAR_CHEAT);
ServerCommand("z_spawn","tank","auto");
SetCommandFlags("z_spawn", flags);
}轉自YSH=]
作者: haroldchan2030 時間: 2010-3-5 16:12
引用:
原帖由 天羽‧耀洋 於 2010-3-5 16:02 發表 
#include
#include
#define PLUGIN_VERSION "0.0.0.1"
public Plugin:myinfo =
{
name = "定時 ",
author = "YSH=]",
description = "簡單的定時出Tank插件",
version = PLUGIN_VERSION,
url = "http://ysh02100 ...
actually i have copied those things to my server.cfg....however, when i open the game, it still only get 1 tank per stage..why:?
作者: wongkc987 時間: 2010-3-5 16:57
引用:
原帖由 haroldchan2030 於 2010-3-5 16:12 發表 
actually i have copied those things to my server.cfg....however, when i open the game, it still only get 1 tank per stage..why:?
this is a script and you cannot copy those into your cfg
because it is a scripting and you need to use some software to put them into .SP file which you need to compile to SMX
after that , you need to make sure that you have installed sourcemod and place them correctly.
then you will be able to use it
-----------------------------------------
But the script that you mention is not correct , some flag problem will be occured because i have tested it and there will be some problems
作者: silly_david 時間: 2010-3-5 21:04
唔明你講緊咩~_~'''
作者: wongkc987 時間: 2010-3-5 21:21
引用:
原帖由 silly_david 於 2010-3-5 21:04 發表 
唔明你講緊咩~_~'''
:L 唔係掛
作者: yeahya 時間: 2010-3-5 23:36
引用:
原帖由 wongkc987 於 2010-3-5 16:57 發表 
this is a script and you cannot copy those into your cfg
because it is a scripting and you need to use some software to put them into .SP file which you need to compile to SMX
after that , you need ...
係呀 我都試過
睇番佢z_spawn用servercommand
咁樣呢個就只限你自己開ser時有開cheats先用得
唔係就無法使用z_spawn指令定時定候生隻tank出黎
作者: haroldchan2030 時間: 2010-3-6 06:25
引用:
原帖由 wongkc987 於 2010-3-5 16:57 發表 
this is a script and you cannot copy those into your cfg
because it is a scripting and you need to use some software to put them into .SP file which you need to compile to SMX
after that , you need ...
wt software i should use in order to change .sp to smx file?? and u mean the script are not correct?? how is it changed to be correct?
作者: tom1314 時間: 2010-3-6 11:31
引用:
原帖由 yeahya 於 2010-3-5 23:36 發表 
係呀 我都試過
睇番佢z_spawn用servercommand
咁樣呢個就只限你自己開ser時有開cheats先用得
唔係就無法使用z_spawn指令定時定候生隻tank出黎
i thought that you know about sourcemod scripting..
but it is seriously wrong.
ya,it is invalid to run z_spawn tank while sv_cheats 1 is disable
but the author added[SetCommandFlags("z_spawn", flags & ~FCVAR_CHEAT);]
Before the command:
ServerCommand("z_spawn","tank","auto");
so meant that command can run it without using sv_Cheats 1
THAT ALL.引用:
原帖由 haroldchan2030 於 2010-3-6 06:25 發表 
wt software i should use in order to change .sp to smx file?? and u mean the script are not correct?? how is it changed to be correct?
i guess you are newbie about it.
first of all,you should know the define of [SCRIPT] and [Command],so google it yourself
Re:wt software i should use in order to change .sp to smx file?
Ans: you can use sourcemod compiler to compile is into smx Plug-in file,,or else you can copy and paste the code into http://www.sourcemod.net/compiler.php
then click on the Compile,,,finially,download the file and put it into your plugin folder of source mod,,.,re-open left 4 dead 2 dedicated server and try it....if work....congratulation...you'r done..
[ 本帖最後由 tom1314 於 2010-3-6 11:42 編輯 ]
作者: haroldchan2030 時間: 2010-3-6 15:17
引用:
原帖由 tom1314 於 2010-3-6 11:31 發表 
i thought that you know about sourcemod scripting..
but it is seriously wrong.
ya,it is invalid to run z_spawn tank while sv_cheats 1 is disable
but the author added[SetCommandFlags("z_spawn", flags & ...
then at first, how to make a .sp file?
作者: tom1314 時間: 2010-3-6 17:18
引用:
原帖由 haroldchan2030 於 2010-3-6 15:17 發表 
then at first, how to make a .sp file?
Just create a text file and put the code inside.save it
then rename it as xxxxx.sp
作者: wongkc987 時間: 2010-3-6 17:31
引用:
原帖由 tom1314 於 2010-3-6 11:31 發表 
i thought that you know about sourcemod scripting..
but it is seriously wrong.
ya,it is invalid to run z_spawn tank while sv_cheats 1 is disable
but the author added[SetCommandFlags("z_spawn", flags & ...
but if you have a test on it , it will not work .
作者: haroldchan2030 時間: 2010-3-7 07:46
引用:
原帖由 wongkc987 於 2010-3-6 17:31 發表 
but if you have a test on it , it will not work .
why it is not working?? the code has some errors?
| 歡迎光臨 IPvE vLan 遊戲平台|網吧系統 (https://www.ipve.com/bbs/) |
Powered by Discuz! 6.0.0 |