Forums Index >> Modding >> A List of functions....
Page : <1> :
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]
Thank you much ;) :)
@art I need a function to change the tank (in onenter form)
function Datablock::OnEnter(%this,%db,%tank)
{
%tank.setdatablock("TANK TYPE");
%tank.client.startingtankdb = "TANK TYPE";
}
Thanks art :)
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