Forums Index >> Modding >> I am needing the code for freezing....
Page : <1> :
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);
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
Less !-markers ;)
Last edited: Saturday, February 05, 2005 at 8:39:17 AM
I guess someone could create a function and code that turns everyone's tank speed to 0 except admins........
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