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.


Topics - Deriboy

Pages: 1 [2] 3 4 5
16
Modification Help / Events
« on: January 25, 2010, 06:29:23 PM »
Could anyone either briefly explain the structure of event scripts, or link me to a tutorial?

17
Modification Help / Functions
« on: January 25, 2010, 06:16:46 PM »
Can you use functions that are defined in other scripts?

18
Suggestions & Requests / Server Privileges
« on: January 11, 2010, 05:02:53 PM »
Mainly to discourage hit-n-run spammers and crud, I am suggesting some sort of mod that only allows things like jets, wrench, or wand after a certain time in the server.

IE I join the server. I can't jet, I only have a hammer. After 5 minutes, I earn jets. another 5 minutes and I have a wrench.

Get it?

19
Modification Help / Hex of standard red text
« on: January 03, 2010, 07:43:17 PM »
I mean, when the game messages you. <FF0000> is a little too bright.

20
Off Topic / It's my birthday!
« on: December 30, 2009, 08:23:50 PM »
So far, I haven't gotten a cake or presents. :C

Anyways, I turned fifteen! I did not know my profile gives cake to me on my birthday. XD

21
Modification Help / stripos
« on: December 30, 2009, 01:45:25 PM »
How exactly does this work?

22
Suggestions & Requests / New "Server-mode"?
« on: December 18, 2009, 07:44:59 PM »
Well, I was just thinking that to make the game a little bit more realistic/interesting in a way, default player could be a no-jet player, and admins get jets. Building would then require scaffolding. It would create a fun building experience. WITHOUT A MINIGAME

Note: This is a suggestion of an OPTION

23
Off Topic / Tetris
« on: December 13, 2009, 03:25:24 PM »

24
Modification Help / Raycasts
« on: December 07, 2009, 06:44:05 PM »
I am wondering about raycasts. How would I fire a raycast, and then have something happen where it hits?

25
Modification Help / Spastic vehicle
« on: November 25, 2009, 03:22:22 PM »
I am trying to make a vehicle. When I spawn it, it spawns about 8 squares to the front of the spawn, tips over onto the spawn, then it goes crazy and flies all over the map. This happens without me touching it. When I touch it, it sometimes calms down and becomes somewhat normal.

I am using blender.

26
Modification Help / Files
« on: November 16, 2009, 05:09:03 PM »
What are the commands for manipulating files?

27
Modification Help / On Client enter game/spawn?
« on: November 13, 2009, 08:53:39 AM »
Is there a function for that?

28
Modification Help / My script wont work for some reason!
« on: November 03, 2009, 10:15:21 PM »
I am having problems.

  • When I whisper to someone, they recieve the message with a bunch of spaces after it.
  • If someone does not exist, it sends it anyway.
  • If I say /whisper without anything after it, it tells me I have no benefit whispering to yourself.
Code: [Select]
package whisperinfo
{
function gameconnection::oncliententergame(%client)
{
if($whisenabled == 1)
{
messageclient(%client, '',"<color:FFFFFF>This server is running Deriboy's Whisper script. It is currently <color:00FF00>enabled.<color:FFFFFF> Type /whisperhelp for help using it.");
Parent::onClientEnterGame(%client);
}

else
{
messageclient(%client, '',"<color:FFFFFF>This server is running Deriboy's Whisper script. It is currently \c0disabled.<color:FFFFFF> Type /whisperhelp for help using it.");
Parent::onClientEnterGame(%client);
}
}
};
activatepackage(whisperinfo);

function servercmdwhisperhelp(%client)
{
messageclient(%client, '',"Type /whisper [target] [message] to whisper to someone in the server.");
messageclient(%client, '',"Admins can type /enablewhisper to enable whispering, or /disablewhisper to disable whispering.");
}

function servercmddisablewhisper(%client)
{
if(%client.isAdmin)
{
if($whisenabled == 0)
{
messageclient(%client, '',"\c0Whispering is already disabled!");
}

else
{
messageall('',"\c0Whispering is now disabled.");
$whisenabled = 0;
}
}

else
{
messageclient(%client, '',"You must be an admin to disable whispering.");
}
}

function servercmdenablewhisper(%client)
{
if(%client.isAdmin)
{
if($whisenabled == 1)
{
messageclient(%client, '',"\c0Whispering is already enabled!");
}

else
{
messageall('',"<color:00FF00>Whispering is now enabled.");
$whisenabled = 1;
}
}

else
{
messageclient(%client, '',"You must be an admin to enable whispering.");
}
}

function servercmdwhisper(%client, %name, %a1, %a2, %a3, %a4, %a5, %a6, %a7, %a8, %a9, %a10, %a11, %a12, %a13, %a14, %a15, %a16, %a17, %a18, %a19, %a20, %a21, %a22, %a23, %a24, %a25)
{
if($whisenabled == 1)
{
%i = 0;
%found = 0;
while(%i < Clientgroup.getcount())
{
%investigate = clientgroup.getobject(%i);
%searchname = findclientbyname(%name);
if(striPos(%investigate.name, %searchname.name) != -1)
{
%found++;
}
%i++;

}
echo(%searchname.name);
echo(%found);
if(%found != 0)
{
if(%found == 1)
{
if(%client != %searchname)
{
if(%name != -1)
{
%msg = %a1 SPC %a2 SPC %a3 SPC %a4 SPC %a5 SPC %a6 SPC %a7 SPC %a8 SPC %a9 SPC %a10 SPC %a11 SPC %a12 SPC %a13 SPC %a14 SPC %a15 SPC %a16 SPC %a17 SPC %a18 SPC %a19 SPC %a20 SPC %a21 SPC %a22 SPC %a23 SPC %a24 SPC %a25;
messageclient(%searchname, '',"<color:FFFFFF>From " @ %client.name @ ": " @ %msg);
messageclient(%client, '', "<color:00FF00>" @ %msg @ "<color:FFFFFF> was sent to " @ %searchname.name);
}

else
{
messageclient(%client, '',"Please enter a name to whisper to");
}
}

else
{
messageclient(%client, '',"Whispering to yourself has no benefit.");
}
}

else
{
messageclient(%client, '',"More than one people in this server have <color:FFFFFF>" @ %name @ " \c0in their name. Try being more specific.");
}
}

else
{
messageclient(%client, '',"There are no players in this server with <color:FFFFFF>" @ %name @ " \c0in their name.");
}
}

else
{
messageclient(%client, '',"Whispering is currently disabled.");
}
}

29
Modification Help / My script is having issues.
« on: November 02, 2009, 08:45:44 AM »
***SOLVED***

Code: [Select]
function servercmddisablewhisper(%client)
{
if(%client.isAdmin)
{
if($whisenabled = 0)
{
messageclient(%client, '',"Whispering is already disabled!");
}

else
{
messageall('',"Whispering is now disabled.");
$whisenabled = 0;
}
}
}

function servercmdenablewhisper(%client)
{
if(%client.isAdmin)
{
if($whisenabled = 1)
{
messageclient(%client, '',"Whispering is already enabled!");
}

else
{
messageall('',"Whispering is now enabled.");
$whisenabled = 1;
}
}
}

When I type /whisenabled it tells me it already is enabled. When I type /whisdisabled it tells me it disables it but actually does not. When I type /whisdisabled again it still says it disabled it, when it should have said: Whispering is already disabled. I cannot figure out the problem. Please help.

30
Modification Help / %client problem
« on: November 02, 2009, 12:17:23 AM »
problem solved.
Here is the fixed code.
Code: [Select]
function servercmdwhisper(%client, %name, %a1, %a2, %a3, %a4, %a5, %a6, %a7, %a8, %a9, %a10, %a11, %a12, %a13, %a14, %a15, %a16, %a17, %a18, %a19, %a20, %a21)
{
if($whisenabled = 1)
{
%reciever = findclientbyname(%name);
%message = %a1 SPC %a2 SPC %a3 SPC %a4 SPC %a5 SPC %a6 SPC %a7 SPC %a8 SPC %a9 SPC %a10 SPC %a11 SPC %a12 SPC %a13 SPC %a14 SPC %a15 SPC %a16 SPC %a17 SPC %a18 SPC %a19 SPC %a20 SPC %a21;
messageclient(%reciever, '', %client.name @ " says: " @ %message);
}

Pages: 1 [2] 3 4 5