View Single Post
  #6  
Old 12-29-2006, 05:52 PM
Twinny Twinny is offline
My empire of dirt
Twinny's Avatar
Join Date: Mar 2006
Location: Australia
Posts: 2,422
Twinny is just really niceTwinny is just really nice
Send a message via AIM to Twinny
I tried setting client flags on players remotely on his server. I've never tried this clientside but apparently it would work.

I did
PHP Code:
//#CLIENTSIDE
function onPlayerChats()
{
  if (
player.chat == "test")
  {
    
temp.findplayer("xXziroXx");
    
player.chat temp.e.client.testflag SPC temp.e.chat;
    
sleep(2);
    
temp.e.client.testflag "RawrTest";
    
player.chat temp.e.client.testflag SPC temp.e.chat;
  }

First time round my chat showed his chat then after 2 seconds i saw 'RawrTest' followed by his chat. When repeated, it showed 'RawrTest' in both phases.

Ziro couldn't read this clientflag that was set on him and when he reconnected it was gone. Kinda wierd

When i used serverside to set player.attr[5] though i could not read a client flag that was set through RC on him. I normally do this thing serverside but if it if supposed to work clientside that would be cool.
Reply With Quote