xPr3d4t0Rs 1 Report post Posted December 9, 2015 Guys I have finished the mod. It's not something specific because I am new to scripting but I added the features that I mentioned above. I run the server from my pc and I open it only when I play with my friends. If you want I can post the code to create a permanent server because I don't have money to buy one server and to be online for hours. Let me know if you want. Share this post Link to post Share on other sites
NinjaWa 30 Report post Posted December 9, 2015 Predator, try to search for people who can, that's what I did and we are running a server Share this post Link to post Share on other sites
xPr3d4t0Rs 1 Report post Posted December 9, 2015 Can you give me a site for good server or people to communicate with? Share this post Link to post Share on other sites
NinjaWa 30 Report post Posted December 10, 2015 Hmmm not really, I was searching for a long time untill someone told me to create a community with them and then the other owner wasn't doing anything and they hosted my server and that owner left cuz he was mad on me (Poseidon). It's a bit hard but let people know about your server and about your mod, as it's unique, make threads about it on some forums. Share this post Link to post Share on other sites
IJzzo 1,072 Report post Posted December 10, 2015 Hmmm not really, I was searching for a long time untill someone told me to create a community with them and then the other owner wasn't doing anything and they hosted my server and that owner left cuz he was mad on me (Poseidon). It's a bit hard but let people know about your server and about your mod, as it's unique, make threads about it on some forums. Isn't that a bit hostile? Share this post Link to post Share on other sites
Volarific 0 Report post Posted December 11, 2015 Okay after reading all the posts it appears that Lossy is right on everything... First off, it's never a good idea to enable sv_cheats on client or server, the fact you're running it on server means anyone can enable god mode if someone calls the script to turn invisible. You'll need something like this: invisibileOnUseButtonPressed() { while(!self useButtonPressed()) { if(self useButtonPressed()) { if(!isDefined(self.invisibility)) { self.invisibility = true; self hide(); } else if(isDefined(self.invisibility) && self.invisibility == true) { self show(); self.invisibility = false; } } wait 0.05; } } Share this post Link to post Share on other sites
xPr3d4t0Rs 1 Report post Posted December 11, 2015 Thanks. I wiil try it. Share this post Link to post Share on other sites
IJzzo 1,072 Report post Posted December 12, 2015 I doubt you can abuse sv_cheats this way as the commands don't get executed while script getting executed. Still it is not elegant. Share this post Link to post Share on other sites
NinjaWa 30 Report post Posted December 12, 2015 I don't really know if hide self(); and show self(); works without setting sv_cheats to 1... Share this post Link to post Share on other sites
xPr3d4t0Rs 1 Report post Posted December 12, 2015 I tried the function that Volarific wrote but it didn't work. Share this post Link to post Share on other sites
Volarific 0 Report post Posted December 13, 2015 I tried the function that Volarific wrote but it didn't work. Show me your entire code, upload it to pastebin with C++ syntax highlighting if you can. Share this post Link to post Share on other sites
NinjaWa 30 Report post Posted December 13, 2015 I tried the function that Volarific wrote but it didn't work. Did you try mine? Share this post Link to post Share on other sites
Lossy 1 Report post Posted December 13, 2015 if you're forcing gsc scripts on a player you never need to change sv_cheats to 1... Share this post Link to post Share on other sites
xPr3d4t0Rs 1 Report post Posted December 14, 2015 Sorry guys for the delay but I was busy these days because I have 2 projects to finish in object oriented programming. I tried Volarific's and xXNinjAXxWii's scripts but it didn't work. I found the solution for the problem by detaching and attaching models manually (because self show() and self hide() don't work with trigger). Lossy I changed sv_cheats to 1 but it couldn't work. Share this post Link to post Share on other sites
Volarific 0 Report post Posted December 16, 2015 Sorry guys for the delay but I was busy these days because I have 2 projects to finish in object oriented programming. I tried Volarific's and xXNinjAXxWii's scripts but it didn't work. I found the solution for the problem by detaching and attaching models manually (because self show() and self hide() don't work with trigger). Lossy I changed sv_cheats to 1 but it couldn't work. Lossy and I said NOT to change sv_cheats to 1.... Share this post Link to post Share on other sites
xPr3d4t0Rs 1 Report post Posted December 16, 2015 Yes but I tried it and with sv_cheats to 0 (default value without setting anything) and it couldn't work. Share this post Link to post Share on other sites
NinjaWa 30 Report post Posted December 21, 2015 HEHEHEHHEHEHE >: D Ninja's here I think we all forgot about for(; so yeah basically add a for(; { } wait .5; inside the script and it should work (Don't forget to make a endon ) Share this post Link to post Share on other sites
SkillzZz 2 Report post Posted December 21, 2015 You want when you type !invisible name To hide him ? Share this post Link to post Share on other sites
Lossy 1 Report post Posted December 21, 2015 HEHEHEHHEHEHE >: D Ninja's here I think we all forgot about for(; so yeah basically add a for(; { } wait .5; inside the script and it should work (Don't forget to make a endon ) there a while statement but k Share this post Link to post Share on other sites
NinjaWa 30 Report post Posted December 22, 2015 And what with the while, Lossy? Share this post Link to post Share on other sites
Lossy 1 Report post Posted December 23, 2015 the for(; will constantly loop it for no reason, the while script will loop so long as the use button is pressed so it's not a 1 time pressed thing. Share this post Link to post Share on other sites