3616
Suggestions & Requests / Re: playSound
« on: November 07, 2008, 04:53:39 PM »
No. I think it would be useful.
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.
Once again, an urgent update. Sorry for all the new versions.
I just used $server::LAN, in which case it executes the command normally, but if it returns false then it checks what the respective $pref is set to, and then executes the command / returns an error message.
if(command is host only)
{
if($Server::LAN)
{
if($Server::Dedicated)
//Can't tell if you're host, always do command
else if(%client.getID() == localclientconnection.getID()
//Do command
else
//show 'not host' error
}
else
{
if(%client.bl_id == getNumKeyID())
//Do command
else
//show 'not host' error
}
}
Didn't have time to say I updated it when I uploaded the new version. Was running late thismorning.Check server::lan and if your client == localclientconnection.getID() for host there, which would work.
Anywho, it's been updated for over 8 hours, with the host glitch fixed. Pretty major one.
I had planned to, I just mean I had originally usedCode: [Select]if(%client.bl_id $= getNumKeyID()) {
to check if the user was the host. Thanks though.
Passable Pilot: Travel 3,000 studs with the stuntplane, minijet, fierbird or biplane
Aviator: Travel 10,000 studs with the stuntplane, minijet, fierbird or biplane
Plastic Eagle: Travel 30,000 studs with the stuntplane, minijet, fierbird or biplane
Lil' Rocket Man: Travel 30,000 studs VERTICALLY with the stuntplane, minijet or biplane
Is there a way to find out how the server is configured before you give trust to other people?I'm not sure. It may show up in the "Accepting full trust will let you paint and DESTROY each others' bricks" GUI (unless it just shows a general message for Build and Full rather than the specific configuration), but as said it may be different in other servers.