106
General Discussion / Re: Will V20 fix brick lighting issues?
« on: April 08, 2012, 07:39:38 PM »The lights going through bricks is something that Kompressor said he might try and work on fixing sometime in the futurebetter be
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.
The lights going through bricks is something that Kompressor said he might try and work on fixing sometime in the futurebetter be
There are a couple of problems with this. You are getting your client side code and your server side code mixed up. This will only work if you are hosting a non-dedicated server. Also just stacking if statements for essentially the same test isn't the best way to do it. Other than that this should work fine.but i have done the if statements right? alos how will it only work on a non dedi
edit: oh also don't have a return before the parent::onconnect
The parent should be the very first thing in this kind of function anyway.
It isn't a command, its just a text modifier.ok,
A command would be something like:
commandtoclient(%client, 'bottomprint', "<font:impact:18>\c2text goes here", 5);
the bottomprint here is a command, and then the string goes in regular quotes. It is called tagging a string, and using apostrophes can have weird results like it sending the player numbers representing the command instead of words that the client can understand.
package AutoMessage
{
function GameConnection::onconnect(%client)
{
%name = findclientbyname(%client);
%random = getrandom(0, 4);
if(%random == "1")
{
commandtoserver('messagesent',"Hey " @ %name @ " how ya going.);
return;
}
if(%random == "2")
{
commandtoserver('messagesent',"Whats up" @ %name @ ".");
return;
}
if(%random == "3")
{
commandtoserver('messagesent',"Welcome to my server" @ %name @ ".");
return;
}
if(%random == "4")
{
commandtoserver('messagesent'."Yay more people are joining");
return;
}
parent::onconnect(%client)
}
activatepackage (AutoMessage);
-snip-JIZZ
Just noticed this picture, I like it.
Use gameConnection::onClientEnterGame.how do you know these is there like a list?
But parent it, and package it.
You can add more variables, like this:aw i was thinking i could do it like batch the more words you type it ads 1 to a var so it be
function servercmdmessage(%client,%user,%msg1,%msg2,%msg3,etc)
Be careful though, I think the limit for arguments is around 13 or 15
That's because he's using one hand.
Wake up your stupid cat. :3but he so shnuggly
It's my dad's Ipad. He uses it rarely and I would never put money down on an apple productgood boy
I don't see where your father is in the wrong. You acted a brat. They're your parents, they'll make you do stuff you don want to. You're better off dealing with it and pleasing them, rathe than being a disrespectful brat just so you could have the last word.
And trust me, you don't hate your father, you're just full of teenage angst.
good thing you paid so much for themBUT this cant be macs are designed to be easy
Am I the only one who does not play with themselves because its a sin?
It really sad that no one else can restrain themselves with basic self control.
a SIN? i will be the one who brings the stuffstorm