Blockland Forums > Modification Help
Client Centerprint
Aide33:
--- Quote from: Ipquarx on December 04, 2011, 11:32:46 AM ---That is not the correct usage.
Here is the correct usage:
--- Code: ---clientCmdCenterPrint("message", time in seconds);
--- End code ---
To see, try typing clientCmdCenterPrint("I will disapeear in 5 seconds!", 5); into the console.
This is assuming your trying to do it client-sidedly.
--- End quote ---
This works.
--- Quote from: Space Guy on December 04, 2011, 04:43:03 PM ---"input it in the console" won't work because %client hasn't been set, so it's not sending the message to anyone.
findClientByName("Aide33").centerPrint("Hello",3); will display that message for one client whose name best matches the one given. This is the same method the Client->CenterPrint event uses.
--- End quote ---
Nvm it works