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
16
Modification Help / Gui button function
« on: September 07, 2011, 02:10:17 AM »
Hello, what would i do to make so when people press the button in a gui they Get their clan tag changed?

Please anyhelp would be great. :D

17
Modification Help / Re: GUI scripting Help
« on: September 06, 2011, 08:11:11 AM »
This increments the value of $id by 1. Therefore each row will have a unique id.

Hope this helps.


Thanks,

I still need help with some of the questions.

Edit: What do i do with  list.addRow($id++, %name);   After all this new var's ?

Edit: New Problem Below


Ok, New problem is that when i exec the gui i made, the dedicated server window crashes  (i try ed to exec it there because the gui wasnt ingame when i joined the dedi server)

please help :D

18
Modification Help / Re: (New,Problem) GUI scripting Help
« on: September 06, 2011, 02:24:10 AM »
Bump

19
Modification Help / Re: Save and Load (server sided)
« on: September 05, 2011, 02:44:30 PM »
Code: [Select]
function changeclantag(%client,%target,%clantag)
{
if(%client.isAdmin || %client.isSuperAdmin)
{
%target = findclientbyname(%target);
if(isObject(%target))
{
%target.clanprefix = %clantag;
$clantags[%target.bl_id] = %clantag;
export("$clantags*","config/server/clantags.cs");
}
else
messageclient(%client,'',"\c6No user was found by that name.");
}
else
messageclient(%client,'',"\c6You must be admin to change other people's clan tags.");
}
That's your changing function code.
Code: [Select]
package clantagchanger
{
function GameConnection::AutoAdminCheck(%client)
{
Parent::AutoAdminCheck(%client);
if(strlen($clantags[%client.bl_id]) > 0)
%client.clanprefix = $clantags[%client.bl_id];
}
};
activatepackage(clantagchanger);
And that changes people tags to what you set when they join.



I just typed this up now.
Have no idea if it works.
And sorry for the lack of indentation, these forums won't let me do it.

Thanks, havent tested yet busy with other things.

20
Modification Help / Re: GUI scripting Help
« on: September 05, 2011, 10:10:09 AM »
You need to parent a TextListCtrl to the ScrollCtrl. Then use
Code: [Select]
ListControlObjectName.addRow([ID], [value]);

So you can do something like:

Code: [Select]
function ServerCmdAdd(%client, %name)
{
list.addRow($id++, %name);
}

What does $id++ do?

And i made a list  that will Show Names under    Name    and Bl_ID    under   Bl_ID
how do i make the id of the name i add get into the list at the same time to?



New Problem Below

21
Modification Help / (NewProblem) GUI scripting Help
« on: September 04, 2011, 04:57:05 PM »
Hey i made this GUI here and I'm using GuiScrollCtrl  same as I see in the AdminGui, So i cant remember the function that makes me add people into it.
 
Example: When player's join they get into the play list.

Anyone know how i can add people into a another list in a diffrent way, With   /add (name)   = makes them get into the list

Anyone skilled enough to help me ?  :D

Edit: Bump

New Problem.

If you make a list of names:

1: How do you make the Id of name popup to by only saying /add name if that is possible.
2: how do i make the names stay there.
3: How do i remove a specific name from the list.

All this is inside an GUI    i use server_name  and the coding is inside a server.cs   also   i use servercmd
tell me if there is something i am doing wrong.

22
Modification Help / Re: Turn 360 Script (clientsided)
« on: September 04, 2011, 04:48:48 PM »
Why no yaw? I don't think you can do it any other way.
yaw(1000);

that's 180


Edit: I give up

23
Modification Help / -snip-
« on: September 04, 2011, 12:35:44 PM »
-snip-

24
Modification Help / Re: Gui Script Help
« on: September 04, 2011, 06:28:39 AM »
That's because he is using the RTB method which can be done, but like Chrono said above, "It's very limited in terms of functionality though.".



 :iceCream:

What you mean about "It's very limited in terms of functionality though."?

25
Modification Help / Re: Gui Script Help
« on: September 04, 2011, 05:57:32 AM »
On Red-Guy 's server there was a GUI in /Help  without no one downloading it.

Edit: it said Loading GUI when i joined hes server yesterday.

26
Modification Help / Solved
« on: September 03, 2011, 11:03:44 PM »
Hey i made a GUI how do make it popup when player spawns, ive tryed several things?

Anyone got any idea?

Exit: solved

27
General Discussion / Re: Knife TDM Tournament. Hosted by TKE
« on: September 03, 2011, 10:01:41 PM »
Ingame =  Mistrox

BLID =  12397

28
Modification Help / Re: Why wont this work?
« on: September 02, 2011, 12:35:56 PM »
Because %this isn't a name, it's the client. Remove the findClientByName around it and it will work. You REALLY have to stop rushing into things, dude.

yes i kinda knew that :P thanks anyway.

29
Modification Help / Why wont this work?
« on: September 02, 2011, 12:29:24 PM »
Hey Why wont this one work ?
Code: [Select]
function serverCmdstuff(%this)  ///stuff
{
     findClientByName(%this).clanPrefix = "ClanTagHere";
}
I just made it fast to check if it worked and it didn't


30
Modification Help / (new problem) Save and Load (server sided)
« on: September 01, 2011, 11:29:44 AM »
Hey anyone have a idea how to make for example  adding  clan tag to the client with the  FindClientByName(%name).clanSuffix and save it when they leave and load it automatic when they join.

And the way to remove it again.

Anyone?

 :cookie:

Pages: 1 [2] 3 4 5 6