Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - rggbnnnnn

Pages: 1 ... 111 112 113 114 115 [116] 117 118 119 120 121 ... 126
1726
General Discussion / Re: Staticmaps Freebuild [v1]
« on: December 24, 2014, 09:35:10 AM »
I actually offered to host for kenko. It is using a rental key so the name is subject to change. I will transfer over the builds and admins. You can expect the server to almost be 24/7 once I start hosting it. Just wanted to give you an update of what's going on.

1727
Modification Help / Re: Minigame Editing
« on: December 23, 2014, 03:29:40 PM »
Unlocking. I just want to know, is there a way to edit the preferences of slayer via scripting as well. I just need to know the syntax.

1728
Modification Help / Re: Minigame Editing (Solved)
« on: December 23, 2014, 03:14:49 PM »
If you'd like to change minigame settings using events, you can enable a hidden feature in Slayer.

Open the "config/server/Slayer" folder and create a blank file called ".advancedEvents.txt" (note the "." at the beginning). Then restart Blockland and you'll see a new minigame event called "Slayer_SetPref".

edit: Just keep in mind that this event is disabled for a reason. You'll see a lot of warnings from Slayer in the console about security risks. It'll be fine in a controlled environment like a TDM, though.
Just what I needed. Greek always delivers the goods. Well I'm going to lock this now.

1729
Modification Help / Minigame Editing
« on: December 23, 2014, 01:22:15 PM »
Hello. I am currently working on Annihilation, a teambased conquering game. I am a noob to coding but it is my project so I took it under myself to do it as I want to not rely completely on others to get my dirty work done.

Basically, I'm trying to get a way for my code to edit a minigame on a event. I was making it so each nexus on destroy to make that team have 1 life left. The add-on is already the kind of gamemode where it is not automated. Example: /startanni starts the game. This is because the add-on needs so and so players to make it fun so the sessions are planned out. However, I would like to make the minigame editing automated as that seems to make the code seem lazy.

Code: [Select]
function serverCmdStartAnni(%client)
{
    if(%client.isAdmin)
    {
     %count = ClientGroup.getCount();
   for(%cl = 0; %cl < %count; %cl++)
   {
    %clientB = ClientGroup.getObject(%cl);
    %clientB.centerPrint("<font:impact:50><color:f420eb>Annihilation round begins in 30 seconds! Prepare yourself!",5);
   }
%time = 30;
serTimer(%time);
    }

    else
    {
messageClient(%client, '', '\c6Only Admins can Start Annihilation!');
    }
}

function serTimer(%time)
{
if (%time <= 0)
{
%count = ClientGroup.getCount();
   for(%cl = 0; %cl < %count; %cl++)
   {
    %clientB = ClientGroup.getObject(%cl);
    %clientB.centerPrint("<font:impact:50><color:f420eb>This Annihilation round has begun!",5);
%clientB.bottomPrint("<color:f420eb>Phase: <color:ffffff>1 <color:1818ba>Team: <color:ffff00>Yellow");
   }
}
else
{
%time--;

$TimerSchedule = schedule(1000, 0, "serTimer", %time);
}
}

That is my code so far. I also want the minigame to force people on to teams when they spawn too. They can choose there team though. If I can get problems done like this, I can be a better coder in the long run. Thanks!

1730
General Discussion / Re: Annihilation, a teambased conquering game. (WIP)
« on: December 23, 2014, 01:11:37 PM »
When your done with the script, I can help you with building. Just PM me and ill be there if I can
OK, thanks for the offer. Also, you guys don't want rpg weapons or dueling weapons, so please tell me what you want so I can deliver. Thank you.

1731
Faces, Decals, Prints / Re: Roblox Face Pack (Every Face EVER)
« on: December 23, 2014, 12:48:15 PM »
Apart from the community, the look and feel and quality of the hats and the website is much better.
Yeah. Just imagine a world where roblox's community was good. That would be the best.

1732
General Discussion / Re: Annihilation, a teambased conquering game. (WIP)
« on: December 23, 2014, 12:23:57 PM »
Bump. I'm not starting on the map until the script is done. However, I don't want to force people into helping as it is my project so I am going to try to do most of the gm myself. I'm new to coding and if there is anything you don't like in the script so far please tell me. I'm am going to try to be the least stubborn possible during the making of this.

Quote
function serverCmdStartAnni(%client)
{
    if(%client.isAdmin)
    {
       %count = ClientGroup.getCount();
          for(%cl = 0; %cl < %count; %cl++)
          {
             %clientB = ClientGroup.getObject(%cl);
             %clientB.centerPrint("<font:impact:50><color:f420eb>Annihilation round begins in 30 seconds! Prepare yourself!",5);
          }
      %time = 30;
      serTimer(%time);
    }

    else
    {
   messageClient(%client, '', '\c6Only Admins can Start Annihilation!');
    }
}

function serTimer(%time)
{
   if (%time <= 0)
   {
      %count = ClientGroup.getCount();
          for(%cl = 0; %cl < %count; %cl++)
          {
             %clientB = ClientGroup.getObject(%cl);
             %clientB.centerPrint("<font:impact:50><color:f420eb>This Annihilation round has begun!",5);
            %clientB.bottomPrint("<color:f420eb>Phase: <color:ffffff>1 <color:1818ba>Team: <color:ffff00>Yellow");
          }
   }
   else
   {
      %time--;
   
      $TimerSchedule = schedule(1000, 0, "serTimer", %time);
   }
}

1733
Help / Re: Syntax Error With Countdown (Fixed)
« on: December 23, 2014, 10:03:27 AM »
Fixed It. Thanks for all your help. Locking.

1734
Help / Re: Syntax Error With Countdown
« on: December 22, 2014, 11:06:34 PM »
New Code:
Quote
function serverCmdStartAnni(%client)
{
    if(%client.isAdmin)
    {
       %count = ClientGroup.getCount();
          for(%cl = 0; %cl < %count; %cl++)
          {
             %clientB = ClientGroup.getObject(%cl);
             %clientB.centerPrint("<font:impact:50><color:f420eb>Annihilation round begins in 30 seconds! Prepare yourself!",5);
            %clientB.centerPrint(%timer,25);
          }
      %time = 30;
      serTimer(%time);
    }

    else
    {
   messageClient(%client, '', '\c6Only Admins can Start Annihilation!');
    }
}

function serTimer(%time)
{
   if (%time <= 0)
   {
      %count = ClientGroup.getCount();
          for(%cl = 0; %cl < %count; %cl++)
          {
             %clientB = ClientGroup.getObject(%cl);
             %clientB.centerPrint("<font:impact:50><color:f420eb>This Annihilation round has begun!",5);
          }
   }
   else
   {
      %time--;
   
      $ShutdownSchedule = schedule(1000, 0, "Timer", %time);
   }
}

1735
Help / Re: Syntax Error With Countdown
« on: December 22, 2014, 11:02:40 PM »
Ok, no more syntax errors, but now I when I type in /startanni, no text shows up. Does executing the other function cancel out my center prints?

1736
Help / Re: Syntax Error With Countdown
« on: December 22, 2014, 10:54:11 PM »
For the record, these kinds of things go in the Coding Help section.
Ah, I did not even see that section when I posted this, sorry.

1737
Help / Re: Syntax Error With Countdown
« on: December 22, 2014, 10:06:15 PM »
I see I forgot a var change at the bottom as I was going off a shutdown script. I can't modify my op...

1738
Help / Syntax Error With Countdown
« on: December 22, 2014, 10:03:16 PM »
Hello. I'm working on a project. I'm new to scripting but I'm sure I'll get better as I go along. Here is my current script I'm working on.
Quote
function serverCmdStartAnni(%client)
{
    if(%client.isAdmin)
    {
       %count = ClientGroup.getCount();
          for(%cl = 0; %cl < %count; %cl++)
          {
             %clientB = ClientGroup.getObject(%cl);
             %clientB.centerPrint("<font:impact:50><color:f420eb>Annihilation round begins in 30 seconds! Prepare yourself!",5);
            %clientB.centerPrint(%timer,25);
          }
      %time = 30
      serTimer();
    }

    else
    {
   messageClient(%client, '', '\c6Only Admins can Start Annihilation!');
    }
}

function serTimer(%time);
{
   if (%time <= 0)
   {
      %count = ClientGroup.getCount();
          for(%cl = 0; %cl < %count; %cl++)
          {
             %clientB = ClientGroup.getObject(%cl);
             %clientB.centerPrint("<font:impact:50><color:f420eb>This Annihilation round has begun!",5);
          }
   }
   else
   {
      %time--;
   
      $ShutdownSchedule = schedule(1000, 0, "Timer", %time);
   }
}
The bold is where it said the error is at. I'm not really even sure how to program a countdown timer anyways. I'm really new to scripting and I'm sure I'll get better. The problems just make me be able to code better in the end.

1739
General Discussion / Re: Annihilation, a teambased conquering game. (WIP)
« on: December 22, 2014, 02:46:26 PM »
This project is really a experience for me.

Baby's first script:
Quote
function serverCmdStartAnni(%client)
{
    if(%client.isAdmin)
    {
       %count = ClientGroup.getCount();
          for(%cl = 0; %cl < %count; %cl++)
          {
             %clientB = ClientGroup.getObject(%cl);
             %clientB.centerPrint("<font:impact:50><color:f420eb>Annihilation round begins in 30 seconds! Prepare yourself!",5);
          }
    }

    else
    {
   messageClient(%client, '', '\c6Only Admins can Start Annihilation!');
    }
}
I'm pretty good with eventing but new to scripting. I'm pretty sure I'll get better throughout the project. Also special thanks to Jamesking56 as I used his announcement addon as a example to make this basic script. I have programmed in basic and in gml before. Also a little bit of html. Pretty much a noob :/

1740
Add-Ons / Re: Slayer
« on: December 22, 2014, 09:28:30 AM »
Or not even a script. Events would help too. I want to be able to make a team not re-spawn after a print under-load.

Pages: 1 ... 111 112 113 114 115 [116] 117 118 119 120 121 ... 126