-
AboAlwe подписался на How to use BulletTracePassed?
-
Give Specialst
I see. I have a question. How I can get the name of the current secondary weapon?
-
Give Specialst
Some pro perks doesn't work. Like "specialty_falldamage" and "specialty_paint_pro" I tested "specialty_fastmantle", "specialty_quickswap" they both work. Any possible solutions?
-
Give Specialst
I tried. it doesn't work :/ Oops. It does work.. I copied the wrong perk name from your code: "specialty_fastreaload" the correct is: "specialty_fastreload"wihtout a. Thank you for help
-
Give Specialst
For some reason it doesn't work. I tried this: case "!fastreload": { AfterDelay(100, () => { issuer.Call("setperk", "specialty_fastreload"); }); return false; } I tried to call "clearperks" => works perfectly. but "unsetperk" doesn't work. :| Did anyone use setperk successfully here? if so, please gimme some advices.
-
Give Specialst
Yes, Give all perks that is "Specialistu Bonus Achieved!" Should I just use player.Call("setperk", "blah"); till the end? the problem here is the names of perks.. where can I get them from? Well those are found in the weaponutils class in qczm Found them thanks for help.
-
Give Specialst
Yes, Give all perks that is "Specialistu Bonus Achieved!" Should I just use player.Call("setperk", "blah"); till the end? the problem here is the names of perks.. where can I get them from?
-
Give Specialst
Hi, How to give Specialist to a player while this player have an assault killstreak? is it possible?
-
How to use BulletTracePassed?
case "!bt": { if (split.Length == 2) { Entity target = findClientExact(split[1]); if (target == null) target = findBotExact(split[1]); else { Utilities.RawSayTo(issuer, gmc + "Couldn't find player"); return false; } AfterDelay(500, () => { Parameter para = Call("bullettracepassed", new Parameter(issuer.Call("geteye")), new Parameter(target.Call("geteye")), new Parameter(true), new Parameter(issuer) ); Utilities.RawSayAll(para.Type.ToString()); }); } return false; } I tried to get the type of the parameter after converting it to string. Using this will crash the server with this error in server console: [Notifiable] Error during handling timer in script ServerAdmin: System.InvalidCastException: Cannot cast from source type to destination type. I guess this command is just unusable. :|
-
How to use BulletTracePassed?
I'm sure there's a way to use it correctly otherwise it won't be available in Call function. I never got "there's no such function" error.
-
How to use BulletTracePassed?
I don't see what's missing. Could you please explain more? :| I tried to change third parameter from true to false.. same thing. :/
-
How to use BulletTracePassed?
Yes, the code is in OnSay event, I put in parameters with afterDelay -> doesn't work case "!bt": { if (split.Length == 2) { Entity target = findClientExact(split[1]); if (target == null) target = findBotExact(split[1]); else { Utilities.RawSayTo(issuer, gmc + "Couldn't find player"); return false; } AfterDelay(500, () => { if (Call("bullettracepassed", new Parameter (issuer.Call("geteye")), new Parameter (target.Call("geteye")), new Parameter(true), new Parameter(issuer) )) { Utilities.RawSayAll("Success"); } else Utilities.RawSayAll("Fail"); }); } return false; }
-
How to use BulletTracePassed?
if (Call("bullettracepassed", issuer.Call("geteye"), target.Call("geteye"), true, issuer)) { Utilities.RawSayAll("Success"); } else Utilities.RawSayAll("Fail"); This cause server to crash. What i want to achieve is : test whether a bullet can penetrate through a wall and reach its target successfully or not? I guessed that bullettracepassed does this. Am I right?
-
Bots for IW5M
I've successfully added bots How to remove them? they stay forever? :| dropclient doesn't work with them btw They can be kicked my mistake
-
Twice first infected preventer
Hi, Sometimes a player gets first infected for two consecutive rounds. Sometimes for three O_O This doesn't happen all the time but it's very frustrating. How to switch team for a player if he gets first infected a second time consecutively? (switching first infected to other team should activate the timer that picks a new first infected or not?). Find first infected and put his name/xuid in a dvar Next round, find the first infected if he is the same, switch him to allies team Find first infected and put his name/xuid in a dvar etc.. To find first infected OnInterval(2000, ....) check if there's only one player in axis team and at least one player in allies team then save the player name /xuid. What I'm missing is how to switch a player's team?
-
Crash-Proof code
Works great. now each message is in different color starting from 1 Cheers
AboAlwe
Игрок
-
Зарегистрирован
-
Посещение