View Single Post
  #1  
Old 07-15-2008, 04:29 PM
foxpawsd foxpawsd is offline
Registered User
foxpawsd's Avatar
Join Date: Dec 2006
Posts: 14
foxpawsd is on a distinguished road
Exclamation staff block droper not working

.... it's not working can some one help?

Quote:
// Twinny's sign dropper
function onActionServerSide()
{
if (params[0] == "layblock")
{
temp.npc = putnpc2(params[1], params[2], "join(\"staffsign\");");
temp.npc.owner = player.account;
}
}

//#CLIENTSIDE
function onCreated()
setTimer(0.05);

function onKeyPressed(num1, code, num2)
{
if (code == "b")
this.block = !this.block; //Toggles on and off
}

function onTimeout()
{
if (this.block)
showimg(1, "staffblock.png", mousex, mousey);
else
hideimg(1);
setTimer(0.05);
}

function onMouseDown(mode)
{
if (mode == "left")
{
if (this.block)
triggerserver("gui", this.name, "layblock", mousex, mousey);
}
else if (mode == "double")
triggeraction(mousex, mousey, "SetMsg", player.chat);
else if (mode == "right")
triggeraction(mousex, mousey, "KillSign", "");
}
Reply With Quote