Author Topic: My first Package  (Read 622 times)

I made a short script, allowing you to tumble other players, here it is.  Can someone tell me whats wrong, and show me how to fix it? Thanks.

Link:

http://www.mediafire.com/download.php?lianj3lulzd


Here, try this:
Code: [Select]
package tumble
{
function servercmdTumble(%client, %user)
{
if(%client.isSuperAdmin == false || %client.isAdmin == false)
{
return;
}
if(%user !$= "")
{
%target = findClientByName(%user).player;
%targetC = findClientByName(%user);
%target.tumble();
messageClient(%client, '', '\c5%1 is now tumbling!', %targetC.name);
messageClient(%targetC, '', '\c6You are now tumbling!', %user);
} else {
%client.player.tumble();
messageClient(%client, '', '\c6You are now tumbling!', %user);
}
}
};
ActivatePackage(tumble);

locking, it works now.