| Blockland Forums > Suggestions & Requests |
| No playerlight in a minigame script |
| (1/3) > >> |
| The Brighter Dark:
I really need this mod for my upcomming server, it would need to disable the regular playerlight, and the green playerlight only while the player is in a mini game. If anyone has something that does this please post here! |
| Zeblote:
--- Code: ---package nolight { function servercmdlight(%cl) { if(!isobject(getminigamefromobject(%cl)) parent::servercmdlight(%cl); } function servercmdgreenlight(%cl, %a) { if(!isobject(getminigamefromobject(%cl)) parent::servercmdgreenlight(%cl, %a); } }; activatepackage(nolight) --- End code --- |
| elm:
--- Quote from: Zeblote on January 08, 2013, 10:21:30 AM --- --- Code: ---function servercmdlight(%cl) { if(!isobject(getminigamefromobject(%cl)) parent::servercmdlight(%cl); } function servercmdgreenlight(%cl) { if(!isobject(getminigamefromobject(%cl)) parent::servercmdgreenlight(%cl); } --- End code --- --- End quote --- You forgot to put those functions in a package. You're also going to break the greenlight commad, nice work. |
| Zeblote:
--- Quote from: elm on January 08, 2013, 11:38:39 AM ---You forgot to put those functions in a package. You're also going to break the greenlight commad, nice work. --- End quote --- Whoops forgot package Also What "disable the regular player light, and the green playerlight only while the player is in minigame" -> "no /light or /greenlight while in mini" |
| elm:
You are still breaking the greenlight command. |
| Navigation |
| Message Index |
| Next page |