| Blockland Forums > Modification Help |
| OnClientEnter message not showing up! |
| (1/2) > >> |
| ScratchTehEPICSpaceDude:
For some reason, the message doesn't show up. Please help! |
| Port:
For one, use onClientEnterGame. How is it "not showing up"? The message part of the script seems fine. |
| Slicks555:
use gameConnection::autoAdminCheck. --- Code: --- function GameConnection::autoAdminCheck(%client) { Parent::autoAdminCheck(%client); messageClient(%client,'',"\c4This server is running the No Baseplates for Non Admins script. This means non-admins cannot build any brick in the baseplate section."); } --- End code --- This works fine for me. |
| Greek2me:
No, that breaks auto admin. You need to return the parent. --- Code: --- function GameConnection::autoAdminCheck(%client) { messageClient(%client,'',"\c4This server is running the No Baseplates for Non Admins script. This means non-admins cannot build any brick in the baseplate section."); return parent::autoAdminCheck(%client); } --- End code --- |
| Jasa0:
--- Code: ---package NoBaseplates { function GameConnection::onClientEnterGame(%client) { Parent::onClientEnterGame(%client); messageClient(%client,'',"\c4This server is running the No Baseplates for Non Admins script. This means non-admins cannot build any brick in the baseplate section."); } function fxDTSBrick::OnPlant(%this) { parent::OnPlant(%this); %client = %this.getGroup().client; if(%this.getDataBlock().category $= "Baseplates" && !%client.isAdmin && %this.isPlanted) { MessageClient(%client, '', "\c6Non-admins aren't allowed to plant any bricks in the baseplate section."); return %this.delete(); } } }; ActivatePackage(NoBaseplates); --- End code --- Rewrote the code. Not sure if this works. |
| Navigation |
| Message Index |
| Next page |