Forums Index >> Modding >> I am needing the code for freezing....



Page : <1> :


Can someone help me on getting me the code for freezing with admin code and where to put it at please? And also if you can get me the scripts for heal all, and some of the others I can not remember at the moment? It is much appreciated and also come and try my mods out in Lookin/ouch. Thanks again guys or ladies XD

 

Sunday, January 30, 2005 at 7:22:48 PM

Healing :

Function heal(%sender,%target_nm)
{
if(!ClientIsAdmin(%sender,"/h command failed you are not admin"))
return;

%match = matchClientName(%target_nm);
%client = firstword(%match);
%status_msg = restWords(%match);

If(%client == -1)
{
schedule(1000,false,"CommandToClient",%sender,'CenterPrint',%status_msg,4,4);
return;
}
schedule(1000,false,"centerprintall", %client.nameBase SPC $pref::Server::HealMessage ,4);
%client.player.hurtMe(-100);

}

Heal all:

Function Healall(%sender)
{
if(!ClientIsAdmin(%sender,"/H-all command failed you are not admin"))
return;
schedule(2000,false,"centerprintall",$pref::Server::HealallMessage,4,4);
centerprintall($pref::Server::HealallMessage,4 );
$len = clientgroup.getCount();
for(%i=0; %i<$len; %i++)
{
%client = clientgroup.getObject(%i);
if(%client != -1)
%client.player.hurtMe(-100);
}

}

Freezing I don't have but I can probably , easily make.

Add these lines in with the functin codeaction:

Else if (%code $="/healall" | %code $= "/h-all" )
call("healall",%sender,%a2);
else if (%code $="/h" | %code $= "/heal" )
call("heal",%sender,%a2);


Saturday, February 05, 2005 at 6:51:40 AM

Oh, and you might wana add these lines in your prefs file:

$pref::Server::healMessage = " You have been healed, so praise now or get banned!!!!!!";
$pref::Server::heal-allMessage = " Everyone has been healed out of gratitude!!!";


Last edited: Saturday, February 05, 2005 at 6:54:30 AM

Saturday, February 05, 2005 at 6:53:28 AM

Less !-markers ;)

Last edited: Saturday, February 05, 2005 at 8:39:17 AM

Saturday, February 05, 2005 at 8:38:49 AM

I guess someone could create a function and code that turns everyone's tank speed to 0 except admins........

 

 

 

 

Sunday, February 06, 2005 at 12:10:25 PM

Page : <1> :

insert quote insert url insert email insert image bold italic underline superscript subscript horizontal rule : : Help on using forum codes

Add comment:

HTML is disabled within comments, but ZBB Code is enabled.

Back to the top

Web site designed, maintained and funded by -z- and Dan MacDonald