Forums Index >> Modding >> A List of functions....



Page : <1> :


This can be a list of different functions to use for different codes ;)
please tell me more to add to this list

//kill a player

 

%client.player.hurtMe(100);

 

//silence a player

 

%client.silenced = true;

 

//read of the banlist

 

%banlist = new FileObject();
if(%banlist.openForRead("game/server/dash/banlist.cs"))
{
%line = %banlist.readLine();
}

 

//make player have a specific projectile

 

%client.player.setProjectile(%projectile);

 

//make player have a specific tank

 

%client.player.setDataBlock(%tank_type);

 

//bottomprintall wording (%msg)

 

Bottomprintall("MSG",4,4);

 

//same as ^ but center print

 

Centerprintall("MSG",4,4);

 

//kick a player with kick announcement

 

%client.delete("YOU HAVE BEEN KICKED FOR BAD BEHAVIOR.");

 

//make person a admin

 

%sender.isAdmin=1;

 

Please post more ;)

Last edited: Sunday, May 29, 2005 at 2:30:58 PM

Saturday, May 28, 2005 at 2:29:25 PM

I wont post more, just correct em:

//read of the banlist

 

%banlist = new FileObject();
if(%banlist.openForRead("game/server/dash/banlist.cs"))
{
%line = %banlist.readLine();
}

 

//bottomprintall wording (%msg)

 

Bottomprintall("MSG",4,4);

 

//same as ^ but center print

 

Centerprintall("MSG",4,4);

 

Oh and fix the projectile and tank changing thing, you put one inside the other cos of a wrong [/quote]

 


Sunday, May 29, 2005 at 10:04:29 AM

Thank you much ;) :)

Sunday, May 29, 2005 at 2:31:25 PM

@art I need a function to change the tank (in onenter form)

Sunday, May 29, 2005 at 4:10:34 PM

 

 

                                        
function Datablock::OnEnter(%this,%db,%tank)
{
%tank.setdatablock("TANK TYPE");
%tank.client.startingtankdb = "TANK TYPE";
}

 

 


Monday, May 30, 2005 at 9:43:18 AM

Thanks art :)

Monday, May 30, 2005 at 6:21:49 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