View Single Post
  #4  
Old 06-30-2011, 08:58 AM
JasonJames JasonJames is offline
Registered User
Join Date: Jun 2011
Posts: 1
JasonJames is on a distinguished road
The sleep was breaking it because a sleep on serverside causes the player to fall out of scope.

You can put the player object in a temporary variable first if you'd still like to do it on serverside (although in this case there's no reason to -- Jer's example should do exactly what you want it to).

PHP Code:
temp.pl player// put the player object in a temporary variable
sleep(2);
temp.pl.chat "It still works!"
Reply With Quote