新手上路
查看詳細資料
TOP
註冊會員
原帖由 SinQ 於 2010-9-4 19:40 發表 姐係...打!spectate咪係轉做觀眾指令既 點可以變左打!abc都可以轉到觀眾
原帖由 SinQ 於 2010-9-4 20:12 發表 我個sp係亂碼- - 根本改唔到..
-.-咩叫SP檔 你上傳果個明明係SMX檔 係副檔名有寫住.sp先係SP檔
#include #define PLUGIN_VERSION "1.0" public Plugin:myinfo = { name = "L4D(2) Change Team", author = "danmala", description = "Allows a player to type !spectate and go to !spectate", version = "1.0.0", url = "N/A" }; public OnPluginStart() { RegConsoleCmd("spectate", JoinTeam1); RegConsoleCmd("sm_infected", JoinTeam3, "Jointeam 3 - Without dev console"); RegConsoleCmd("sm_survivor", JoinTeam2, "Jointeam 2 - Without dev console"); } // ------------------------------------------------------------------------ // jointeam2 && jointeam3 // ------------------------------------------------------------------------ public Action:JoinTeam3(client, args) {FakeClientCommand(client,"jointeam 3");return Plugin_Handled;} public Action:JoinTeam2(client, args) {FakeClientCommand(client,"jointeam 2");return Plugin_Handled;} public Action:JoinTeam1(client, args) {ChangeClientTeam(client, 1);return Plugin_Handled;} public IsValidPlayer (client) { if (client == 0) return false; if (!IsClientConnected(client)) return false; if (IsFakeClient(client)) return false; if (!IsClientInGame(client)) return false; return true; }
「… 喂… 小子你看甚麼?」 ...
高級會員