View Single Post
Re: Metamod Plugin Programming Tutorial linux
Old
  (#8)
Pierre-Marie Baty
Roi de France
 
Pierre-Marie Baty's Avatar
 
Status: Offline
Posts: 5,049
Join Date: Nov 2003
Location: 46°43'60N 0°43'0W 0.187A
Default Re: Metamod Plugin Programming Tutorial linux - 07-10-2004

There is a macro to execute arbitrary server commands.

SERVER_COMMAND ("your_command_here\n");

it calls pfnServerCommand()

You can get a client's name by looking it up in the engine's string table using the STRING() macro.

STRING (pClientEdict->v.netname)

pClientEdict being an edict_t pointer.

I don't understand what you want exactly. WHEN do you want your mp_timelimit command to be executed ?



RACC home - Bots-United: beer, babies & bots (especially the latter)
"Learn to think by yourself, else others will do it for you."
  
Reply With Quote