Author Topic: Packaging Stuff - eek!  (Read 783 times)

I'm trying to package F8/F7 (dropPlayerAtCamera(); and dropCameraAtPlayer(); I believe). However, I'm starting to think that they're clientside functions or else I'm doing it wrong... Help?

Code: [Select]
package lolno
{
function dropPlayerAtCamera()
{
                //lolno
}

function dropCameraAtPlayer()
{
                //lolno
}
};

Are you trying to prevent players on your server from using f8/f7?
Add serverCmd to the function names (serverCmdDropPlayerAtCamera, not dropPlayerAtCamera, etc)

Just don't make stupid people admin. lol

That and what Adam said.

There is on add-on, I forgot who made it or what it's called, but it allows you to change what admin level is required to use certain commands, you could just change those two to host only, allowing you to still use it.

Your so off, Its
serverCmdDropPlayerAtCamera(%cl)
and serverCmdDropCameraAtPlayer(%cl)



There is on add-on, I forgot who made it or what it's called, but it allows you to change what admin level is required to use certain commands, you could just change those two to host only, allowing you to still use it.
http://forum.returntoblockland.com/dlm/viewFile.php?id=80

And /warp is left open
Good point. Lemme see if I can't search that up.

Just don't make stupid people admin. lol

That and what Adam said.
This isn't even for internet servers :3

EDIT: Found it. serverCmdWarp(%cl); for future reference.
« Last Edit: November 07, 2010, 11:15:45 PM by cucumberdude »


Secrit :o


Anyways, it ain't working :/
Code: [Select]
package lolno
{
function serverCmdDropPlayerAtCamera(%c)
{
                //lolno
}

function serverCmdDropCameraAtPlayer(%c)
{
                //lolno
}

function serverCmdWarp(%c)
{
//nope.avi
}
};

What am I forgetting? :/

EDIT: Oh wow, activate package...
fail.

EDIT: Found it. serverCmdWarp(%cl); for future reference.
if it is /stuffs, then it tends to be servercmdstuffs, as i've seen so far

It will always be like that, since the client knows to call commandtoserver if the chat message begins with /

that's what i thought the / ment, good to know i was right :D