Script Development
Help and requests for InfinityScript development.
245 тем в этом разделе
-
Hi guys! I'm trying to write a script, that shows some text when the player opens the menu, and hides it when it's closed. PlayerConnected += new Action((player) => { player.Call("notifyOnPlayerCommand", "test", "togglemenu"); player.OnNotify("test", (entity) => { Call("clientprint", entity, "test"); }); }); This is the code i tried, because i found this in the key bindings: "bind ESCAPE togglemenu" The same method worked for the voting keys by using "vote yes" and "vote no" instead of togglemenu. Is it possible to do what i want? Hiding the text is not a problem, i already have the code that hides it when the player closes the menu, i got…
-
im looking to add a nuke countdown timer before the round starts and add to the infected team red vission like they have been nuked. also anyone can convert this would be a awesome. unrealTournament(ServerClient client) { if (client.Stats.Kills == 2) { iPrintLn(client.Name + " ^3is on ^1KILLING SPREE", null); iPrintLnBold(client.Name + " ^3is on ^1KILLING SPREE", null); } else if (client.Stats.Kills == 4) { iPrintLn(client.Name + " ^3is on ^1RAMPAGE SPREE!", null); iPrintLnBold(client.Name + " ^3is on ^1RAMPAGE SPREE!", null…
-
I know that if (scr_gameended != 0) that means the game has ended but how I can make an event for it? Is making a timer that checks every say: half a second is the only way to do it? Please help.. :| Additon: Surprisingly, this code cause server to crash: bool gameended = Call("getdvar", "scr_gameended") != 0; Is there a way to fix this?
-
- 4 ответа
- 164 просмотра
-
-
viewtopic.php?f=40&t=20561 on the subject produced his card, and I need to remove the fly. Who can give me the script that it was impossible to fly. In the theme was written to remove fly to do this is: Download MapEdit.cs, open a C# compiler, put the MapEdit.cs inside, reference InfinityScript.dll, find this portion: CODE: SELECT ALL player.Call("notifyonplayercommand", "fly", "+frag"); and just comment it out i.e. //player.Call("notifyonplayercommand", "fly", "+frag"); or delete it your call. Then build the dll
-
I want to use commands like dropclient etc in C# Sorry for asking such a noob question. This is because there are no documentation for InfinityScript. Nukem's server Addon was documented and nicely organaized with examples etc.. that made me learn a lot and use functions with ease. Please do the same if you have free time. (PLEASE!) BTW, I'm using InfinityScript because Nukem's addon is not supported otherwise I won't even look at it (Even though it is SO AWESOME but rewriting all my codes to it is a lot of work >_<) I tried to search for ServerCommand and found only an event OnServerCommand and couldn't deal with it. --> noob Again, please make a documentati…
-
- 12 ответов
- 372 просмотра
- 1 follower
-
-
Tell me where can I get this picture of blood ...
-
- 8 ответов
- 252 просмотра
- 3 followers
-
-
it's possible to convert a Parameter to a Vector3? if yes, how?
-
- 3 ответа
- 107 просмотров
- 1 follower
-
-
i need no knife script for some mods anyone have this script?
-
Is it possible to do it? Once the player has made ​​100 kills, he is given the speed.
-
- 3 ответа
- 120 просмотров
-
-
Is it possible to make a mod that give a player aimbot/wh/no recoil as killstreaks rewards or something? It's for infected gametype.
-
- 2 ответа
- 291 просмотр
-
-
hello every 1 this is alive players code it works but the problem is that it show team 1:players and team2: players in place of friends: players and ennemys: players using System; using System.Collections.Generic; using System.Linq; using System.Text; using InfinityScript; using System.Timers; namespace Alive_Players { public class Alive : BaseScript { public int aliveteam; public int aliveenemy; public Alive() { PlayerConnected += new Action(entity => { HudElem LabelA = HudElem.CreateFontString(entity, "hudbig", 0.6f); LabelA.SetPoint("DOWNRIGHT", "DOWNRIGHT", -5, 130); …
-
- 25 ответов
- 378 просмотров
- 1 follower
-
-
I need Infected random weapon Script or Plugin ... :?:
-
hi I need No Knife script dll or class for isnipe mod :roll:
-
- 3 ответа
- 152 просмотра
- 2 followers
-
-
I Need a plugin to display some advertisement in your server and also intended to provide an example on how to use the HudElem type.anybody help me to do it?
-
- 6 ответов
- 227 просмотров
- 1 follower
-
-
-
When I start my server, Error comes saying - Welcome to IW5M r28. http://fourdeltaone.net/ for help and support Loading fastfile code_pre_gfx_mp Loading fastfile localized_code_pre_gfx_mp Loading fastfile code_post_gfx_mp Loading fastfile localized_code_post_gfx_mp Loading fastfile patch_mp Loading fastfile dlc2_ui_mp Loading fastfile dlc1_ui_mp Loading fastfile common_mp Loading fastfile localized_common_mp Connecting to online services.... Connected to online services. Executing server config "server.cfg" Succeeded reading from default.dspl Loaded 5 map entries Loading DSR "FFA_default.dsr"... Loading Succeeded for DSR "FFA_default.dsr" -------------------------…
-
- 2 ответа
- 132 просмотра
- 1 follower
-
-
hi all im start learning c# i have this error a project with an Output Type of Class cannot started directly. In order to debug this project, add an executable project to this solution which references the library project. Set the executable project as the startup project. can u help me in this error? pls any 1 helps?
-
Hey guys i am having a little bit of trouble. i tried this NoKnife Mod by DaMacc viewtopic.php?f=41&t=10261# but its not working right. after i compiled the code and run it on my server, people are still able to knife each other. so if anyone has this mod working would you share the compiled dll?
-
- 2 ответа
- 156 просмотров
- 1 follower
-
-
-
it's possibile to send a private message in chat to a player?
-
- 21 ответ
- 461 просмотр
- 1 follower
-
-
hi guys i found advanced hud on its mods but it wont work on hc and this is the plugin:http://www.itsmods.com/forum/attachment.php?aid=2252 can anyone convert it to a script workinf with hardcore mod?
-
- 9 ответов
- 303 просмотра
-
-
hi all i found alive players hud(it shows number of friends/ennemys alive) https://www.assembla.com/code/gonemod/s ... .gsc?rev=3 i want to compile it to .dll to be able to use in scripts and thx
-
- 5 ответов
- 185 просмотров
- 1 follower
-
-
Hy, I was wanting to change a couple of settings and it looks like the only way to do so is to edit the source files and recompile. I didn't post in the [RELEASE] topic because I knew the post would have to wait for approval. Some settings I'd like to change are: scr_sd_winlimit 4, g_hardcore 0, scr_spectatetype 1. I've attempted to change them via the server.cfg but I guess since the script loads after the config, it doesn't matter what I put in the config file...or am I wrong? Either way, I couldn't figure out how to change these settings without a recompile. If I have to recompile it, I can, but I need a little help. I've recompiled scripts but only 1 …
-
how can this help anyone
-
- 4 ответа
- 349 просмотров
- 1 follower
-
-
Hi, I've been searching a long time ago for a plugin to put in my isnipe server, I really need a anti spray plugin so if you guys can tell me where can i get it i would really apreciate that..
-
- 10 ответов
- 299 просмотров
- 1 follower
-