Thread: commands.pl
View Single Post
  #2  
Old 11-18-2004, 10:16 AM
Cisyouc
Demi-God
 
Join Date: Jun 2004
Location: Heaven.
Posts: 1,260
Default

You make one.

Example of one:
Code:
sub commands_init
{
   command_add("killself", "- Kills yourself.", 0);
}
sub killself
{
   $client->Kill();
}
__________________
namespace retval { template <class T> class ReturnValueGen { private: T x; public: ReturnValueGen() { x = 0; }; T& Generator() { return x; }; }; } int main() { retval::ReturnValueGen<int> retvalue; return retvalue.Generator(); }
C++ is wonderful.
Reply With Quote