The "player spawn(origin, angle)"-function is crashing the server when used in CodeCallback_PlayerCommand(args).
To prevent the Segmentation Fault, just write:
PHP Code:
CodeCallback_PlayerCommand(args)
{
waittillframeend;
// all other code...
// all other code...
// all other code...
}
or:
PHP Code:
CodeCallback_PlayerCommand(args)
{
wait 0.05;
// all other code...
// all other code...
// all other code...
}
Attention: Only call wait 0.05; or waittillframeend; when you really need to call the spawn-function! Because the arguments are saved in ONE global structure and when 2 players in a server write something near in the same time, the ClientCommand()-function is mixing up the data otherwise.