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 - xcruso

Pages: [1] 2 3 4 5 6
1
Modification Help / Re: is this Possible?
« on: September 12, 2011, 10:48:23 AM »
Clientgroup is server side.
messageboxok is client side.

Something needs to be changed.

I think there is a commandtoclient that will do a prompt, but I do not know if it is default.

I want it server sided, because the gui that the code will be inn is server sided.

2
Modification Help / is this Possible?
« on: September 11, 2011, 05:30:13 PM »
Hey is it possible if i make a serverCmdadmins(%client)
And when i do the command all admin names will popup some where?
Is that possible?

Not by making all names of admins in a text command and make that popup.

3
Modification Help / Re: Buttons
« on: September 11, 2011, 04:19:57 PM »
gotoWebPage(FULL URL including http://);
I believe that is the function executed when you click a link in chat. hope this helps.

also placid, running a trace really is not a great way to find out how something is running, especially if you have RTB, where it spams the console at a rate of around 10 lines per second. I think google is a much less painful alternative.

If you use http:// isnt the rest of the text going to be green and not useable then?

Edit: i used "" inside it and it worked.

Thanks.

4
Modification Help / Buttons
« on: September 11, 2011, 12:16:41 PM »
Hey do anyone have a fast code if possible that if you press a button inside a gui you will open a page?

5
Help / Re: Weird Problem with files
« on: September 09, 2011, 10:40:06 AM »
Anyone else wanna help,
I even do export("$Test*","config/server/Test.cs");

but its not showing up and yes i got the var name fixed and all that.


6
Modification Help / Re: (new problem) Save and Load (server sided)
« on: September 09, 2011, 05:02:58 AM »
add:
Code: [Select]
exec("config/server/clantags.cs");

to the END of your script.  Then it will load whatever is saved when you rsestart.

Thanks.

Edit: The one DrenDran gave me i made it into a /command but it writes $clantags12397 = "Test"; but that one doesn't work as loading it again  I would like to make it say  $clantags12397 = FindClientByName(%target).clanPrefix = "Test";
Please tell me if there is any way to make it write that in the clantags
:D 

7
Help / Re: Weird Problem with files
« on: September 08, 2011, 05:56:35 PM »
go to config/server/blbha.cs and delete it. - Problem solved.

That file was just an example, that i cant see any files from city rpg gamemode saves and any other export's
 "and i cant see addon's that i download from RTB (ingame) in the addon's folder"

8
Help / Weird Problem with files
« on: September 08, 2011, 05:34:51 PM »
Hello,

I got a weird problem with some addon's and blockland files that are in config/server/ blbha.cs

Well i cant see addons i download from RTB in my addon's folder, only when i load a game i can see them execute, also files i export i cannot see.

Please help or tell me if you got the same problem.

9
Modification Help / Re: Gui makes my dedicated crash
« on: September 07, 2011, 07:18:49 PM »
What makes you think you can load a gui on a dedicated server?

Guis are a client-side thing

Is there a reason it shouldn't?

10
Modification Help / Re: If player in list
« on: September 07, 2011, 07:17:11 PM »
Maaany functions for this, but here's 2 ways, one is unnessisarily complicated, the other not so much.

Complicated one
Code: [Select]
               for(%i=0;%i<ClientGroup.getCount();%i++)
                {
                        %cl = ClientGroup.getObject(%i);
                        if(%cl.name $= %cl.name)

Easier one :)
Code: [Select]
           if(isObject(findclientbyname(%asdf)))
            {
                %obj = findclientbyname(%asdf).player;
                %obj.commands(args);
            }

Example function
Code: [Select]
function servercmdslap(%this,%target)
{
   if(client.isAdmin)
     {
         if(isobject(findclientbyname(%target)))
           {
               obj.setVelocity(0 50 200);
            }
      }
}

Ty, i tell you if i got more problems.

11
Modification Help / Re: Save and Load (server sided)
« on: September 07, 2011, 06:53:04 PM »
Ok, i got a new Problem, the clan tag is getting removed after restarting the game, any idea to fix that?

12
Modification Help / If player in list
« on: September 07, 2011, 06:21:45 PM »
Hello, is it possible to make like in a gui there is a list of ppl and is there a way to check if their name is in the list? then if their in the list the function for that will work?

13
Modification Help / Re: Gui button function
« on: September 07, 2011, 12:45:00 PM »
Code: [Select]
commandToServer()

although this would have to be defined on the host server.
Thanks.

14
Modification Help / Gui makes my dedicated crash
« on: September 07, 2011, 12:06:10 PM »
Hey, everytime i load my server_randomname   with my gui inside the dedicated server crash when it loads the addon in the dedi window, and Ive tryed alot of things to make it work, but it doesn't so i need help to know why my dedicated server can't load my GUI  but if it's not dedicated it works fine.


15
Modification Help / Re: Gui button function
« on: September 07, 2011, 04:47:59 AM »
You'd have to communicate Client Side to Server Side, or atleast how I'd do it.
And how do i do that?

Pages: [1] 2 3 4 5 6