Forums Index >> Modding >> LOCK MM observing, Tank, Projectile, and Team chan...



Page : <1> :


Ok if I had this code:

Function lockobserving(%sender,%target_nm)
{
if(!ClientIsAdmin(%sender,"/LockObserving command failed you are not an 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::LockObservingMessage ,4);

}
How do I make a line that changes $pref::Server::AllowObserving = 1;
into
$pref::server::AllowObserving = 0;
if this is possible then I could make a code that makes team tank and projectile changing IN GAME I think this would be cool and easier for hosters/admins
thank you for your time :)

Last edited: Saturday, April 23, 2005 at 3:57:35 PM

Saturday, April 23, 2005 at 3:57:12 PM

Anyone Know?

Saturday, April 23, 2005 at 4:56:38 PM

Function lockobserving(%sender,%target_nm)
{
if(!ClientIsAdmin(%sender,"/LockObserving command failed you are not an 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::LockObservingMessage ,4);
$pref::server::AllowObserving = 0;
}

Saturday, April 23, 2005 at 5:17:06 PM

Lol I was so close thankx chilled ;) XD

Saturday, April 23, 2005 at 5:18:01 PM

Ehhemm.... I think ( with all due respect ) that sparky here deserves a big fat DUHH!!! :P

 

 

 

 

Last edited: Thursday, May 05, 2005 at 4:39:12 PM

Thursday, May 05, 2005 at 4:38:56 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