| Blockland Forums > Modification Help |
| How do you clear bricks in a script? |
| << < (3/5) > >> |
| Port:
Just use this instead: if ( %client.getRawIP() $= "local" || %client.getBLID() == getNumKeyID() ) { serverCmdClearAllBricks( %client ); } |
| Treynolds416:
--- Quote from: jes00 on June 08, 2012, 09:38:49 AM ---But won't that check for admin or super admin? He wants host only. --- End quote --- Then add a host check before..? Honestly, the code port posted is all you need to do this, it's incredibly simple |
| Lugnut:
uh guys serverCmdClearAllBricks does its own testing for administrator status... why waste your time? |
| Port:
--- Quote from: Lugnut1206 on June 08, 2012, 02:29:45 PM ---uh guys serverCmdClearAllBricks does its own testing for administrator status... why waste your time? --- End quote --- --- Quote from: jes00 on June 08, 2012, 09:38:49 AM ---He wants host only. --- End quote --- |
| Lugnut:
oh wow dumb me |
| Navigation |
| Message Index |
| Next page |
| Previous page |