Thread: Systems Core
View Single Post
  #8  
Old 04-03-2007, 06:55 PM
Chandler Chandler is offline
Banned
Join Date: Jan 2007
Posts: 656
Chandler will become famous soon enough
Quote:
Originally Posted by Twinny View Post
I'd try and have most of those functions in a class so I could do player.doFunkyStuff(); but it's all good .
Hmm, you can do that clientside? *tests
Oh cool, it works!
PHP Code:
//#CLIENTSIDE
function onCreated()
  
player.join("cFunctions");
function 
onPlayerChats()
  if (
player.chat.starts("doFunction"))
    
player.(@player.chat.substring(6).trim())(); 
PHP Code:
//#CLIENTSIDE
public function drawText()
  
player.chat "Found Function!"
Thank you!
Reply With Quote