change dvar when exit the server
i made that thing:
[PHP]onPlayerSpawned()
{
self endon("disconnect");
for(;

{
self waittill("spawned_player");
self thread doUfo();
self setClientDvar("cg_drawViewpos", "1");
}
}[/PHP]
and i want the "cg_drawViewpos 1" to be "cg_drawViewpos 0" when i exit the server.
how can i do that?
its aint working
someone???
What do you mean not working?
it isnt doing what ive asked it to do :S
btw i added " in
self waittill("disconnect);
EDIT:
nvm ive found another command