Author Topic: Help with my script  (Read 4322 times)

Yeah, I haven't made a command in a long while.


can some 1 tell me why my script is not the blockland addons list

This topic has been stuff on. Let me fix this up.

Okay, so what exactly do you need?
Are you setting your own velocity?
Are you setting another player's velocity by including their name?
Is it a specific velocity, or are you determining it?
Admin only? Super Admin only? Host only?

Answer all of this.

This topic has been stuff on. Let me fix this up.

Okay, so what exactly do you need?
Are you setting your own velocity?
Are you setting another player's velocity by including their name?
Is it a specific velocity, or are you determining it?
Admin only? Super Admin only? Host only?

Answer all of this.
im making a command that adds velocity
im making it so adminis can do it to other ppl but non admins can olny do it to them selvs.
the /command detrims the velocity that is added and for what player.

now can you help me

Make a file called server.cs and have it contain this code:
Code: [Select]
function serverCmdVelocity(%client,%x,%y,%z,%name)
{
if(%client.isAdmin && %name !$= "")
%target = findClientByName(%name).player;
else if(!isObject(%target))
%target = %client.player;
if(isObject(%target))
%target.setVelocity(%x SPC %y SPC %z);
}

Make a file called description.txt with this format:

Code: [Select]
Title: Whatever your mod is called
Author: Your name or whoever you credit.

Pack those both into a .zip folder, and have it called something like Script_Velocity

I suggest you don't release this, people will not like it.

Ok ty for helping me all of you.

A glass of milk and chrono ty for helping me the most

ok i dont see it on my addons list can some 1 help me here?
i incluuded everything that crono said but dont see it in my addons!

Make a file called server.cs and have it contain this code:
Code: [Select]
function serverCmdVelocity(%client,%x,%y,%z,%name)
{
if(%client.isAdmin && %name !$= "")
%target = findClientByName(%name).player;
else if(!isObject(%target))
%target = %client.player;
if(isObject(%target))
%target.setVelocity(%x SPC %y SPC %z);
}

Make a file called description.txt with this format:

Code: [Select]
Title: Whatever your mod is called
Author: Your name or whoever you credit.

Pack those both into a .zip folder, and have it called something like Script_Velocity

I suggest you don't release this, people will not like it.

He wants to add velocity:

Code: [Select]
function serverCmdVelocity(%client,%x,%y,%z,%name)
{
        %target = %client.player;
if(%client.isAdmin && %name !$= "")
%target = findClientByName(%name).player;
if(isObject(%target))
%target.setVelocity(vectorAdd(%target.getVelocity(),%x SPC %y SPC %z));
}

He wants to add velocity:

Code: [Select]
function serverCmdVelocity(%client,%x,%y,%z,%name)
{
        %target = %client.player;
if(%client.isAdmin && %name !$= "")
%target = findClientByName(%name).player;
if(isObject(%target))
%target.setVelocity(vectorAdd(%target.getVelocity(),%x SPC %y SPC %z));
}

Ah okay.
Use his code instead.

Upload your work to www.mediafire.com and post it here.


You spelled server.cs wrong and it's in some kind of strange format.
Edit the server.cs with the same program you did with description.txt

kk let me try to see if its on bl now

ty its there i just enabled it you are free to use it at your sever if you want :D

ty and LOCKING


this taught me a lot and ill be able now to be able to make more addons.

real quick how do i work it?
XD