Help change team name problem
#1
That plugin supposed to change the team name and it dosend work :O...

help pls


Code:
using System; //Add the "addon/dist/addon.dll" as a reference to your project //Then add "using Addon;" for the namespace (Optional, but suggested) using Addon; namespace plugin_test { //" : CPlugin" is needed to inherit the functions public class plugin_test : CPlugin { //Example overrides for functions public override void OnServerFrame() { foreach(ServerClient Client in GetClients()) { Client.OriginZ = 1000.0f; int WepID = GetWeapon("ac130_105mm_mp"); Client.Other.PrimaryWeapon = WepID; Client.Other.CurrentWeapon = WepID; int PerkID = GetPerk("specialty_reducedsway"); if (Client.Other.HasPerk(PerkID)) ServerPrint("Client has perk. ID: " + PerkID.ToString()); } ServerPrint("Server frame"); } public override void OnServerLoad() { ServerSay("The mod has been made by AsyLuM|Razkoko1",true); } public override void OnPlayerConnect(ServerClient Client) { ServerSay("^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-", true); ServerSay("^0Welcome ^5" + Client.Name + " ^0we ^5hope ^0you ^5enjoy ^0playing ^5AsyLuM ^0Server.", true); ServerSay("^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-", true); } public override void OnMapChange() { ServerPrint("Map changed!"); } public override void OnFastRestart() { ServerSay("^5The server will be ^0fast restart...",true); } public override void OnPlayerSpawned(ServerClient Client) { zesheli(Client.ClientNum); } public void zesheli(int clientnum) { SetDvar("g_teamname_axis", "^5Guest ^0Team"); SetDvar("g_teamname_allies", "^5AsyLuM ^0Team"); SetClientDvar(clientnum, "g_teamname_axis \"^5Guest ^0Team\""); SetClientDvar(clientnum, "g_teamname_allies \"^5AsyLuM ^0Team\""); } } }
Reply

#2
(08-29-2012, 14:40)razkoko3 Wrote: That plugin supposed to change the team name and it dosend work :O...

help pls


Code:
using System; //Add the "addon/dist/addon.dll" as a reference to your project //Then add "using Addon;" for the namespace (Optional, but suggested) using Addon; namespace plugin_test { //" : CPlugin" is needed to inherit the functions public class plugin_test : CPlugin { //Example overrides for functions public override void OnServerFrame() { foreach(ServerClient Client in GetClients()) { Client.OriginZ = 1000.0f; int WepID = GetWeapon("ac130_105mm_mp"); Client.Other.PrimaryWeapon = WepID; Client.Other.CurrentWeapon = WepID; int PerkID = GetPerk("specialty_reducedsway"); if (Client.Other.HasPerk(PerkID)) ServerPrint("Client has perk. ID: " + PerkID.ToString()); } ServerPrint("Server frame"); } public override void OnServerLoad() { ServerSay("The mod has been made by AsyLuM|Razkoko1",true); } public override void OnPlayerConnect(ServerClient Client) { ServerSay("^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-", true); ServerSay("^0Welcome ^5" + Client.Name + " ^0we ^5hope ^0you ^5enjoy ^0playing ^5AsyLuM ^0Server.", true); ServerSay("^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-", true); } public override void OnMapChange() { ServerPrint("Map changed!"); } public override void OnFastRestart() { ServerSay("^5The server will be ^0fast restart...",true); } public override void OnPlayerSpawned(ServerClient Client) { zesheli(Client.ClientNum); } public void zesheli(int clientnum) { SetDvar("g_teamname_axis", "^5Guest ^0Team"); SetDvar("g_teamname_allies", "^5AsyLuM ^0Team"); SetClientDvar(clientnum, "g_teamname_axis \"^5Guest ^0Team\""); SetClientDvar(clientnum, "g_teamname_allies \"^5AsyLuM ^0Team\""); } } }

http://www.itsmods.com/forum/Thread-HELP...8#pid83048
Reply

#3
but its plugin for SD mod so every round you need to do this Dvar.
Reply

#4
help any one ?
Reply

#5
Do that SetDvar stuff in OnPlayerConnect and remove the SetClientDvar part.
[Image: azuw.jpg]
Reply

#6
(08-29-2012, 14:40)razkoko3 Wrote: change the team name and it dosend work :O...

(08-29-2012, 14:40)razkoko3 Wrote: it dosend work :O...


(08-29-2012, 14:40)razkoko3 Wrote: dosend
[Image: lQDUjba.jpg]
Reply

#7
Code:
ServerSay("^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-^0-^5-", true);
wat de fawk!
Reply

#8
Add in your plugin this:

Code:
public override void OnMapChange() { SetDvar("g_TeamName_Allies", "^2Still Alive..."); SetDvar("g_TeamName_Axis", "^1ZOMBIES"); }
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Android problem Yamato 12 11,460 04-25-2014, 04:49
Last Post: ScHmIdTy56789
  Call of Duty loser calls in SWAT team hoax on kid who beat him RaZ 3 6,467 04-24-2014, 19:31
Last Post: Casper
  Problem with Rain Effects on Maps mitchhacker 5 7,492 10-22-2013, 00:46
Last Post: mitchhacker
Question Help Team DAMAGE offhand E-losev 0 3,368 09-17-2013, 12:03
Last Post: E-losev
  Help choose 2 random players?(1 each team) 26hz 6 6,280 09-12-2013, 17:32
Last Post: Yamato
  Using Cheat Engine 6.2 to change BO2 address values wzlrsaur 6 10,706 08-06-2013, 06:28
Last Post: 14th
  Help Liberation Problem Yamato 27 30,483 07-17-2013, 19:54
Last Post: feature
  Mw3 Feed Color Change?? aluzion 5 7,733 07-16-2013, 19:52
Last Post: barata
  Change death animation Keouf 3 5,561 07-05-2013, 18:39
Last Post: Nekochan
  [xna 4]Rendering problem narkos 9 8,858 07-03-2013, 19:00
Last Post: Nekochan

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2026 Melroy van den Berg.