| Blockland Forums > Modification Help |
| Making a script ban people for a length of time on death. |
| (1/2) > >> |
| DrenDran:
I know how to script some, but I don't know the syntax for the on death package, nor how to ban someone. (though script) Anyone here know? |
| deathrider:
look at ban hammer might help |
| Placid:
--- Quote from: DrenDran on June 20, 2010, 08:46:53 AM ---I don't know the syntax for the on death package, --- End quote --- I don't know either but please try a search before you make a topic. --- Quote from: DrenDran on June 20, 2010, 08:46:53 AM ---nor how to ban someone --- End quote --- ban(ID,TIME,"REASON"); if this isn't correct, its ban(TIME,ID,"REASON"); |
| Sebster 105:
Wouldn't you need to use %player instead of ID? |
| Destiny/Zack0Wack0:
--- Code: ---package BanOnDeath { function gameConnection::onDeath(%client,%source,%killer,%type,%location) { Parent::onDeath(%client,%source,%killer,%type,%location); ban(%client.BL_ID,10,"DEFEATED"); //banned for 10 minutes } }; activatePackage(BanOnDeath); --- End code --- Something along the lines of this is what you want. |
| Navigation |
| Message Index |
| Next page |